
AWS CLIで
・RDSを開始
できます!

「aws rds start-db-instance」コマンドで
停止できます!
サンプルコマンド
ここでは例として
・DB 識別子「sample-rds-postgres」を開始
します。

構文は以下です。
aws rds start-db-instance --db-instance-identifier DB 識別子 --profile プロファイル名
実行例は以下です。
aws rds start-db-instance --db-instance-identifier sample-rds-postgres --profile develop
実行結果
RDSを開始できました。



参考①
開始している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)’.

参考②
RDSを停止することもできます。
詳細は以下の記事をご確認ください。
参考③
「aws rds start-db-instance」コマンドの詳細は、公式サイトをご確認ください。