Filtering AMI by name using aws-cli
From Listing and Filtering Using the CLI and API:
You can also use wildcards with the filter values. An asterisk (*) matches zero or more characters, and a question mark (?) matches exactly one character.
List any RHEL 7.x HVM GA images
aws ec2 describe-images --filters Name=name,Values=RHEL-7.?_HVM_GA*