docs(route53): crossaccountrole scope-down guidance#28624
docs(route53): crossaccountrole scope-down guidance#28624mergify[bot] merged 8 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
|
Clarification Request - Are test file / integration tests required for README updates? If yes, should I assume the necessary test is to prove that the updated snippets synthesize and build correctly, or what is the expectation? |
kaizencc
left a comment
There was a problem hiding this comment.
I'm happy to accept this, and thanks for improving our docs. However, the build has to succeed, and we run our readme examples to make sure they compile (and yours does not). once yours does, i'll approve.
to check if your example compiles, you can run yarn rosetta after building aws-cdk-lib
| sid: "ListHostedZonesByName", | ||
| effect: iam.Effect.ALLOW, | ||
| actions: ["route53:ListHostedZonesByName"], | ||
| resources: ["*"] |
There was a problem hiding this comment.
nit: i want a comma here and in all other places that should have punctuation
There was a problem hiding this comment.
Ack, should be resolved.
| // The other account | ||
| assumedBy: new iam.AccountPrincipal('12345678901'), | ||
| }); | ||
| // The role name must be predictable |
There was a problem hiding this comment.
the formatting here is inconsistent with the rest of the doc in terms of tabs
There was a problem hiding this comment.
Not sure I follow, I see other comments in the doc follow the tab alignment of the line of code below it that it speaks to. Can you clarify?
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |

Reference issue 28596
The motivation is to help CDK builders understand how to take advantage of IAM scope-down capabilities to ensure least-privilege cross-account role access related to cross account zone delegation.
The Cross Account Zone Delegation guidance currently includes reference to creating a crossAccountRole, but provides no suggestion on how to safely scope down the role for least-privilege access. We can and should provide this guidance.
E.g.
should be more like:
Closes #28596.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license