Stopping an RDS instance via CLI

前端 未结 1 1175
醉酒成梦
醉酒成梦 2021-01-25 08:44

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:

1条回答
  •  被撕碎了的回忆
    2021-01-25 09:15

    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
    

    0 讨论(0)
提交回复
热议问题