Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elastic Beanstalk CLI upload version without deploying

Is there a way with EB CLI to upload a zip package to the environment but not actually deploy it? This can be done on the web console but I would like to have the output of each build in the CI server to be uploaded to Elastic Beanstalk via EB CLI but only selected builds actually be deployed (this step will be manual in the web console)

like image 473
neo112 Avatar asked Apr 06 '17 17:04

neo112


1 Answers

The EB CLI does not have the functionality for this process. I would suggest using the AWS CLI to push the local zip into S3 then to upload using the Create Application Version method directly, like this:

aws s3 cp app.zip s3://staging-bucket

aws elasticbeanstalk create-application-version --application-name app-name --version-label deploy-app --source-bundle S3Bucket=staging-bucket,S3Key=app.zip

Does this help your problem?

like image 123
nbalas Avatar answered Nov 01 '22 09:11

nbalas