Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in AWS by (19.1k points)

I am trying to retrieve a list of servers using the AWS CLI tools. I have 2 groups of servers, 1 will have the string "mind" in the Nametag, another group will have the string "intelligence" in the Nametag.

I can filter the output of DescribeInstances using wildcards but can I return instances that contain mind OR intelligence? in the Name?

Currently, I have to run the command twice replacing the filter Value.

1 Answer

0 votes
by (44.4k points)

You can supply multiple values for a tag. I think something like this would work for you:

aws ec2 describe-instances --filters Name=tag:Name,Values=mind,intelligence

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
0 votes
1 answer

Browse Categories

...