Installing the AWS EB CLI command on Debian 11 (WSL2)
Installing the Elastic Beanstalk command to enable you to deploy your code to AWS Elastic Beanstalk
·Jul 2, 2022·
2 min read
Play this article
In order to create docker containers in Amazon Web Services Elastic Beanstalk, you need the EB CLI command to run. I didn’t find the installation of this very straightforward forward so hopefully, this helps you.
sudo apt update sudo apt -y upgrade sudo apt install wget build-essential libreadline-gplv2-dev libncursesw5-dev \ libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev sudo apt -y install wget wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz tar xzf Python-3.9.1.tgz python3.9 --version
Set python symlink to run off just the python command
sudo ln -s /usr/bin/python3.9 /usr/bin/python python --version
sudo apt-get -y install python3-pip
sudo pip install virtualenv virtualenv --version
sudo apt-get -y install git
Create a folder and pull the eb command repo
sudo mkdir /eb-command chown -R <ADDUSER>:<ADDUSER> /eb-command cd eb-command git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
Run EB CLI install file
A successful install will look like this
Run the bash command provided above
Test EB CLI Command
Successful will look like this
- Join me and invest commission-free with Freetrade. Get started with a free share worth £3-£200.
- Start a blog on Hashnode
- Transfer money internationally with Wise
- Join coinbase with my and you will earn some free crypto as well
Now you can create apps in elastic beanstalk! I will blog creating an app soon.
Hope this helps😁
Feel free to comment with questions or feedback✌️
Did you find this article valuable?
Support Asrin Dayananda by becoming a sponsor. Any amount is appreciated!