Installing the AWS EB CLI command on Debian 11 (WSL2)

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

Asrin Dayananda
·Jul 2, 2022·

2 min read

Subscribe to my newsletter and never miss my upcoming articles

Play this article

Table of contents

  • Install python
  • Install pip
  • Install virtualenv
  • Install git
  • Create a folder and pull the eb command repo
  • Test EB CLI Command
  • Credits
  • Shameless Plugs

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.

Install python

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
sudo ln -s /usr/bin/python3.9 /usr/bin/python
python --version

Install pip

sudo apt-get -y install python3-pip

Install virtualenv

sudo pip install virtualenv
virtualenv --version

Install git

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

python ./aws-elastic-beanstalk-cli-setup/scripts/ebcli_installer.py

A successful install will look like this image.png

Run the bash command provided above

Test EB CLI Command

eb --help

Successful will look like this

image.png

Credits

Shameless Plugs

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✌️

Happy coding,

Az 👨🏾‍💻

Did you find this article valuable?

Support Asrin Dayananda by becoming a sponsor. Any amount is appreciated!

See recent sponsors Learn more about Hashnode Sponsors
 
Share this