Created
September 16, 2018 13:30
-
-
Save valbeat/3822c33087cd11aa7be18901d4e11de2 to your computer and use it in GitHub Desktop.
EC2インスタンスのPublicDnsNameを一覧で表示するコマンド ref: https://qiita.com/valbeat/items/f73f94b5e738060fa60a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aws ec2 describe-instances --query 'Reservations[*].Instances[*].PublicDnsName' --output text | |
ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com | |
ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com | |
ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com | |
ec2-xxx-xxx-xxx-xxx.ap-northeast-1.compute.amazonaws.com | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment