Skip to content

Commit

Permalink
Added example of filtering EC2 instances by tags.
Browse files Browse the repository at this point in the history
Fixes #1238
  • Loading branch information
trevorrowe committed Jul 20, 2016
1 parent 426ed5a commit c105191
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# filtering by tag keys "key1" or "key2"
ec2.describe_instances(filters:[{ name: 'tag-key', values: ['key1', 'key2'] }])

# filtering by tag values "value1" or "value1"
ec2.describe_instances(filters:[{ name: 'tag-value', values: ['value1', 'value2'] }])

# filtering by key and value, key equals "key1" and value equals "value1" or "value2"
ec2.describe_instances(filters:[{ name: "tag:key1", values: ['value1'] }])

0 comments on commit c105191

Please sign in to comment.