我有一个带有 Amazon-Linux 操作系统的 EC-2 实例,使用 Elastic Beanstalk 在 AWS 上运行 Flask 应用程序,我正在尝试使用 eb terminate
命令终止我的 Elastic Beanstalk 应用程序.这是 documentation关于我尝试使用的方法:
但是,当我运行命令时,我得到以下响应:
[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/