AWS EC2: Invalid command - terminate

2024-10-02 00:30:13 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个带有amazonlinuxos的EC-2实例,它使用elasticbeanstalk在AWS上运行Flask应用程序,我正尝试使用eb terminate命令终止我的elasticbeanstalk应用程序。下面是我尝试使用的方法的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应用程序?如果别人能帮我,我将不胜感激。你知道吗


Tags: 实例方法命令ipaws应用程序flaskdocumentation
2条回答

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

为了终止我的电子商务环境,我访问了:

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

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

enter image description here

相关问题 更多 >

    热门问题