Created
November 8, 2019 20:19
-
-
Save sathed/0f79d3578b3fcad3f0a9befeabbd7c7a to your computer and use it in GitHub Desktop.
AWS CLI filters using tags
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
# Usage: --filters "Name=string,Values=string,string..." | |
# Example using `tag` key-value pairs: | |
aws ec2 describe-instances --filters "Name=tag:<tag_name>,Values=<value1>,<value2>..." | |
# Example using `tag-key` name: | |
# Note: This only looks at the key name(s), not the value of the key(s). | |
aws ec2 describe-instances --filters "Name=tag-key,Values=<tag-key1>,<tag-key2>..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment