From 2304bd675b074770fc19252ec439f624ff506306 Mon Sep 17 00:00:00 2001 From: Likitha Vemulapalli Date: Thu, 14 Nov 2024 10:27:52 -0800 Subject: [PATCH] Fix AMI filtering to include owner-alias --- pkg/ec2helper/ec2helper.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/ec2helper/ec2helper.go b/pkg/ec2helper/ec2helper.go index a6647a3..46dfb47 100644 --- a/pkg/ec2helper/ec2helper.go +++ b/pkg/ec2helper/ec2helper.go @@ -408,6 +408,12 @@ func getDescribeImagesInputs(rootDeviceType string, architectures []*string) *ma Name: aws.String("architecture"), Values: architectures, }, + { + Name: aws.String("owner-alias"), + Values: []*string{ + aws.String("amazon"), + }, + }, }, } }