AWS EC2:"无效命令:终止"

时间:2015-08-18 00:25:10

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

我有一个使用Elastic Beanstalk的Amazon-Linux操作系统的EC-2实例在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应用程序?我会很感激别人可以提供的任何帮助。

2 个答案:

答案 0 :(得分:1)

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

答案 1 :(得分:1)

为了终止我的eb环境,我访问了:

https://console.aws.amazon.com/elasticbeanstalk/?region=us-west-2

提供给region=的值是包含要关闭的环境的区域。在该页面上,可以轻松地轻松停用多个环境:

enter image description here