![](http://aws-guide.work/wp-content/themes/cocoon-master/images/b-woman.png)
AWS CLIで
・RDSを開始
できます!
![](http://aws-guide.work/wp-content/themes/cocoon-master/images/b-woman.png)
「aws rds start-db-instance」コマンドで
停止できます!
サンプルコマンド
ここでは例として
・DB 識別子「sample-rds-postgres」を開始
します。
![DB 識別子「sample-rds-postgres」](https://aws-guide.work/wp-content/uploads/2024/03/aws_rds_start_cli_001.png)
構文は以下です。
aws rds start-db-instance --db-instance-identifier DB 識別子 --profile プロファイル名
実行例は以下です。
aws rds start-db-instance --db-instance-identifier sample-rds-postgres --profile develop
実行結果
RDSを開始できました。
![実行結果①](https://aws-guide.work/wp-content/uploads/2024/03/aws_rds_start_cli_002.png)
![実行結果②(起動中)](https://aws-guide.work/wp-content/uploads/2024/03/aws_rds_start_cli_003.png)
![実行結果③(利用可能)](https://aws-guide.work/wp-content/uploads/2024/03/aws_rds_start_cli_004.png)
参考①
開始しているRDSへ上記コマンド(開始コマンド)を実行すると、以下のエラーとなります。
エラーメッセージ
An error occurred (InvalidDBInstanceState) when calling the StartDBInstance operation: Instance DB 識別子 cannot be started as it is not in one of the following statuses: ‘stopped, inaccessible-encryption-credentials-recoverable, incompatible-network (only valid for non-SqlServer instances)’.
![エラーメッセージ](https://aws-guide.work/wp-content/uploads/2024/03/aws_rds_start_cli_005.png)
参考②
RDSを停止することもできます。
詳細は以下の記事をご確認ください。
参考③
「aws rds start-db-instance」コマンドの詳細は、公式サイトをご確認ください。