Last active
May 16, 2018 01:36
-
-
Save tjinjin/bbc3da309ec978cef37c4617fa2b7945 to your computer and use it in GitHub Desktop.
AWSのよく使うコマンド
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
## EC2のインスタンス一覧が欲しい | |
export AWS_PROFILE=hoge | |
export AWS_REGION=ap-northeast-1 | |
aws --output table ec2 describe-instances --region $AWS_REGION --profile $AWS_PROFILE \ | |
--query 'Reservations[].Instances[].[PrivateIpAddress,Tags[?Key==`Name`].Value|[0],InstanceId]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment