![](http://aws-guide.work/wp-content/themes/cocoon-master/images/b-woman.png)
AWS CLIで
・EC2インスタンスを開始
できます!
![](http://aws-guide.work/wp-content/themes/cocoon-master/images/b-woman.png)
「aws ec2 start-instances」コマンドで
開始できます!
サンプルコマンド
ここでは例として
・EC2インスタンス「i-xxxxxxxxxxxxxxxxx」を開始
します。
![停止しているEC2インスタンス「i-xxxxxxxxxxxxxxxxx」](https://aws-guide.work/wp-content/uploads/2023/11/aws_ec2_start_001.png)
構文は以下です。
aws ec2 start-instances --instance-ids "EC2のインスタンスID" --profile プロファイル名
実行例は以下です。
aws ec2 start-instances --instance-ids "i-xxxxxxxxxxxxxxxxx" --profile develop
実行結果
EC2インスタンスを開始できました。
![実行結果①](https://aws-guide.work/wp-content/uploads/2023/11/aws_ec2_start_005.png)
![実行結果②](https://aws-guide.work/wp-content/uploads/2023/11/aws_ec2_start_004.png)
参考①
EC2インスタンスを停止することもできます。
詳細は以下の記事をご確認ください。
参考②
「aws ec2 start-instances」の詳細は、公式サイトをご確認ください。