Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
4 views
in AWS by (1.4k points)

I have a document stating that AWS CLI replaces EB CLI but documentation explains only EB CLI. I have all the tools installed in Ubuntu which were already tested locally and created an application in Elastic Beanstalk console. I need to deploy. Can anyone suggest to me how I can do this with AWS CLI?

1 Answer

0 votes
by (2.6k points)
edited by

From your application create a source bundle and you can refer the below link:

http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/applications-sourcebundle.html

Create a new version from your application using AWS CLI and deploy it in an application environment. The CLI documentation for EBS here.

For creating source bundle:

zip MyCodeBundle.zip <source files>

For uploading it to S3:

aws s3 cp MyCodeBundle.zip s3://a-bucket-where-you-store-your-source-bundles/

Refer here for creating a new application using the uploaded source bundle.

aws elasticbeanstalk create-application-version --application-name YourEBSAppName --version-label YourVersionLabel --source-bundle S3Bucket="a-bucket-where-you-store-your-source-bundles",S3Key="MyCodeBundle.zip"

Update the environment to use the version

aws elasticbeanstalk create-application-version --application-name YourEBSAppName --version-label YourVersionLabel --source-bundle S3Bucket="a-bucket-where-you-store-your-source-bundles",S3Key="MyCodeBundle.zip"  

And also check out Intellipaat's AWS Online Training and become an AWS expert

You can also refer elastic beanstalk

Related questions

0 votes
1 answer
asked Dec 19, 2020 in AWS by devin (5.6k points)
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...