Filtering AMIs based on tags,
Last updated 4 years ago
ec2 = boto3.resource('ec2', region_name='us-east-1') filters = [{'Name': 'tag:Service', 'Values': ['your-tag']}] my_images = ec2.images.filter(Filters=filters)