python - AWS EC2 : "Invalid command: terminate"

标签 python linux amazon-web-services amazon-ec2 flask

我有一个带有 Amazon-Linux 操作系统的 EC-2 实例,使用 Elastic Beanstalk 在 AWS 上运行 Flask 应用程序,我正在尝试使用 eb terminate 命令终止我的 Elastic Beanstalk 应用程序.这是 documentation关于我尝试使用的方法:

enter image description here

但是,当我运行命令时,我得到以下响应:

[ec2-user@ip-172-31-14-25 python2.7]$ eb terminate ecco-app-dev
Invalid command: terminate

我正在运行 eb 版本 2.6.4:

[ec2-user@ip-172-31-14-25 python2.7]$ eb --version
AWS Elastic Beanstalk Command Line Interface v2.6.4

有谁知道为什么我收到“无效命令”响应,或者我可以做什么来终止 eb 应用程序?如果其他人可以提供任何帮助,我将不胜感激。

最佳答案

eb terminate 是一个 eb 版本 3 命令。

eb 2.6 仅支持以下内容:

branch
delete
events
init
logs
push
start
status
stop
update

来源:http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cmd-commands.html

eb 版本 3 命令:

abort
clone
config
console
create
deploy
events
health
init
list
local
logs
open
platform
printenv
scale
setenv
ssh
status
swap
terminate
upgrade
use

来源:http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.html

关于python - AWS EC2 : "Invalid command: terminate",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32061739/

相关文章:

Python : save dictionaries through numpy. 保存

amazon-ec2 - 如何找出 EC2 用户数据脚本出现故障的位置?

postgresql - 如何解决错误: could not access file "pglogical": No such file or directory

python - 抓取时获取错误实例方法没有属性 '__getitem__'

python - 在神经网络的学习阶段反向传播后会发生什么?

linux - 如何处理这个补丁问题

linux - 如何在gerrit中创建 merge 补丁和 merge 补丁之前的依赖关系?

Android AWS CognitoCachingCredentialsProvider 使 API 17 中的应用程序崩溃 - JellyBean

python - 如何与 Pyramid 中的所有模板共享选定数量的数据?

linux - 如何使用 Perl 快速检查是否安装了 Linux `unzip`?