0 votes
1 view
in AWS by (19.2k 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.6k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !