
AWS CLIで
・EC2インスタンスを停止
できます!

「aws ec2 stop-instances」コマンドで
停止できます!
サンプルコマンド
ここでは例として
・EC2インスタンス「i-xxxxxxxxxxxxxxxxx」を停止
します。

構文は以下です。
aws ec2 stop-instances --instance-ids "EC2のインスタンスID" --profile プロファイル名
実行例は以下です。
aws ec2 stop-instances --instance-ids "i-xxxxxxxxxxxxxxxxx" --profile develop
実行結果
EC2インスタンスを停止できました。


参考①
EC2インスタンスを開始することもできます。
詳細は以下の記事をご確認ください。
参考②
「aws ec2 stop-instances」の詳細は、公式サイトをご確認ください。