I am writing a python script to retrieve a list of instances that were incorrectly tagged. I need to filter by checked if a specific string exists in the name.

What is the best way to do this?

I was going to use describe\_instances and use the tag filter (where the key is 'Name') but that filter requires that I provide the full value of the tag (i.e. the instance name) but I need to be able to search using a subset of the name.

Can this be done using the client?