diff --git a/pkg/cfn/builder/statement.go b/pkg/cfn/builder/statement.go index 6419a1ce30..ddeac1c44b 100644 --- a/pkg/cfn/builder/statement.go +++ b/pkg/cfn/builder/statement.go @@ -319,9 +319,9 @@ func ebsStatements() []cft.MapOfInterfaces { "Action": []string{ "ec2:CreateTags", }, - "Resource": []string{ - "arn:aws:ec2:*:*:volume/*", - "arn:aws:ec2:*:*:snapshot/*", + "Resource": []*gfnt.Value{ + addARNPartitionPrefix("ec2:*:*:volume/*"), + addARNPartitionPrefix("ec2:*:*:snapshot/*"), }, "Condition": cft.MapOfInterfaces{ "StringEquals": cft.MapOfInterfaces{ @@ -337,9 +337,9 @@ func ebsStatements() []cft.MapOfInterfaces { "Action": []string{ "ec2:DeleteTags", }, - "Resource": []string{ - "arn:aws:ec2:*:*:volume/*", - "arn:aws:ec2:*:*:snapshot/*", + "Resource": []*gfnt.Value{ + addARNPartitionPrefix("ec2:*:*:volume/*"), + addARNPartitionPrefix("ec2:*:*:snapshot/*"), }, }, {