如何通过AWS命令行工具更新Elastic

如何通过AWS命令行工具更新Elastic

本文介绍了如何通过AWS命令行工具更新Elastic Beanstalk应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

啊,我爱/恨AWS.

那么,我实际上如何从命令行更新Elastic Beanstalk中的应用程序?

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

旁注::我尝试了eb cli,该安装破坏了我的aws cli安装,因此无法正常工作.

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

AWS命令行工具提供了一个update-environment命令和一个update-application命令,以及更新版本"的方法,但似乎都没有改变实际的代码.

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.

如何使用命令行工具: http://docs.aws.amazon.com/cli/latest/reference/elasticbeanstalk/update-environment.html 更新我的应用程序的实际源代码?

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?

推荐答案

使用(eb deploy environmentname)命令,您可以将更新的代码部署到现有环境中,如果出现错误,例如:

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

然后您需要更新.elasticbeanstalk/config.yml文件中的区域.

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

这篇关于如何通过AWS命令行工具更新Elastic Beanstalk应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 22:21