July 31, 2019
This post will cover how to download and deploy code to AWS Elastic BeanStalk using the EB CLI.
To install AWS EB CLI on Mac use Homebrew, see the documentation here. For other platforms check the documentation here.
You will now need to eb init
Elastic BeanStalk in a directory. This will ask you for AWS credentials if you haven’t set them up there. The CLI will ask you to pick a region, pick the region where you have your EB Environments.
Now you will download your code using the CLI by using eb labs download
.
To deploy code back to the same environment. Use eb deploy
.
Written by Farhad Agzamov who lives and works in London building things. You can follow him on Twitter and check out his github here