Created
January 7, 2014 01:44
-
-
Save tmtk75/8293397 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 \ | |
| --filter Name=tag-key,Values=Name \ | |
| --filter Name=tag-value,Values=$instance_name \ | |
| | jq -r ".[][].Instances[].InstanceId" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to get instance-id with Name tag value