Skip to content

Commit

Permalink
fix: "iam:PassRole" defined in CFN to work properly in AWS China
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-nefedov committed Aug 22, 2024
1 parent cf67d5b commit 2b172a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Resources:
"Action": "iam:PassRole",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
"iam:PassedToService": "ec2.${AWS::URLSuffix}"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion website/content/en/preview/reference/cloudformation.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ This gives EC2 permission explicit permission to use the `KarpenterNodeRole-${Cl
"Action": "iam:PassRole",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
"iam:PassedToService": "ec2.${AWS::URLSuffix}"
}
}
}
Expand Down

0 comments on commit 2b172a6

Please sign in to comment.