1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWS CLI 初心者向け コマンド一覧

Posted at

すべての登録済みEC2インスタンスを取得(us-east-1リージョンの場合):

aws ec2 describe-instances --query "Reservations[*].Instances[*].InstanceId" --region us-east-1

起動中(running)のEC2インスタンスのみ取得(us-east-1リージョンの場合):

aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" --query "Reservations[*].Instances[*].InstanceId" --region us-east-1
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?