How to update an Elastic Beanstalk app from the AW

2019-07-16 12:54发布

问题:

Ah, I love/hate AWS.

So, how do I actually update an application in Elastic Beanstalk from the command line?

side note: I tried the eb cli, the install broke my aws cli install, so that's not gonna work.

The AWS command line tool, provides an update-environment command and an update-application command, and ways to update "versions" none of which seem to change the actual code.

How do I use the command line tools: http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/update-environment.html to update the actual source code of my application?

回答1:

By using (eb deploy environmentname) command you can deploy updated code to existing environment and if it give error like:

ERROR: TypeError - must be str, not NoneType 

then you need to update region in .elasticbeanstalk/config.yml file.