I am trying to use one of AWS\'s latest features where it allows you to stop an RDS instance.
I followed this doc where it explains that I need to run the command:
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