Skip to content

Commit ed6fa9b

Browse files
authored
fix: Use partition data source on VPC CNI IPv6 policy (#2161)
1 parent 78e391e commit ed6fa9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node_groups.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ data "aws_iam_policy_document" "cni_ipv6_policy" {
3030
statement {
3131
sid = "CreateTags"
3232
actions = ["ec2:CreateTags"]
33-
resources = ["arn:aws:ec2:*:*:network-interface/*"]
33+
resources = ["arn:${data.aws_partition.current.partition}:ec2:*:*:network-interface/*"]
3434
}
3535
}
3636

0 commit comments

Comments
 (0)