Skip to content

Commit 83b68fd

Browse files
dattyOliver Smith
andauthored
fix: Allow for both amazonaws.com.cn and amazonaws.com conditions in PassRole as required for AWS CN (#3422)
* Allow for both amazonaws.com.cn and amazonaws.com conditions as required for AWS CN * Allow for both amazonaws.com.cn and amazonaws.com conditions as required for AWS CN - set in correct policy --------- Co-authored-by: Oliver Smith <[email protected]>
1 parent 325c3fe commit 83b68fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/karpenter/policy.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ data "aws_iam_policy_document" "v1" {
585585
condition {
586586
test = "StringEquals"
587587
variable = "iam:PassedToService"
588-
values = ["ec2.${local.dns_suffix}"]
588+
values = distinct(["ec2.${local.dns_suffix}", "ec2.amazonaws.com"])
589589
}
590590
}
591591

0 commit comments

Comments
 (0)