Stopping an RDS instance via CLI

感情迁移 提交于 2019-12-02 05:20:36

It is a new feature and available since CLI version 1.11.95. Latest version is 1.11.109. Update to the latest AWS CLI version and you can use stop-db-instance

Before upgrade

$ aws --version
aws-cli/1.11.83 Python/2.7.10 Linux/4.1.17-22.30.amzn1.x86_64 botocore/1.5.46

$ aws rds stop-db-instance    
aws: error: argument operation: Invalid choice, valid choices are:

Upgrade CLI and reboot (Linux)

$ sudo pip install awscli --upgrade

After upgrade

$ aws --version
aws-cli/1.11.109 Python/2.6.9 Linux/4.1.17-22.30.amzn1.x86_64 botocore/1.5.72

$ aws rds stop-db-instance
aws: error: argument --db-instance-identifier is required
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!