-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(route53): add support for parentHostedZoneName for CrossAccountZoneDelegationRecord #14097
Conversation
@njlynch This is the follow up to the previous change for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, and thanks for this contribution!
The PR includes motivation for the zone name lookup, but not the role name addition. Can you expand a bit on the motivation here, including any feedback you've gotten on it?
packages/@aws-cdk/aws-route53/lib/cross-account-zone-delegation-handler/index.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No new comments, just appropriately marking as "request changes" so my queue's updated. :)
…oneDelegationRecord
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! 👍
Thank you for contributing! Your pull request will be updated from master 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 master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…oneDelegationRecord (aws#14097) feat(route53): add support for parentHostedZoneName for CrossAccountZoneDelegationRecord 1. Zone name lookup: The current implementation of `CrossAccountZoneDelegationRecord` requires users to pass the `parentHostedZoneId` which is not so easy since we cannot pass references cross account. This implementation lets them pass the zone name and queries the route53 API to get the zoneId. 2. Delegation role name addition The ARN of the delegation role cannot be passed around to stacks since they will have different environments (this is cross account delegation and CDK does not allow passing references across environments). This means that users need to import the delegation role in the stack containing the child zone. Since it needs to be imported, the users would need the role ARN. Now this ARN can either be hard-coded or constructed. Hard-coding the ARN is not entirely feasible since that would require deploying the parent stack first, then making code change and then deploying child stack in pipelines. With role name, the ARN can be easily constructed (refer readme for importing role) and it provides a better user experience. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
…oneDelegationRecord (aws#14097) feat(route53): add support for parentHostedZoneName for CrossAccountZoneDelegationRecord 1. Zone name lookup: The current implementation of `CrossAccountZoneDelegationRecord` requires users to pass the `parentHostedZoneId` which is not so easy since we cannot pass references cross account. This implementation lets them pass the zone name and queries the route53 API to get the zoneId. 2. Delegation role name addition The ARN of the delegation role cannot be passed around to stacks since they will have different environments (this is cross account delegation and CDK does not allow passing references across environments). This means that users need to import the delegation role in the stack containing the child zone. Since it needs to be imported, the users would need the role ARN. Now this ARN can either be hard-coded or constructed. Hard-coding the ARN is not entirely feasible since that would require deploying the parent stack first, then making code change and then deploying child stack in pipelines. With role name, the ARN can be easily constructed (refer readme for importing role) and it provides a better user experience. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
feat(route53): add support for parentHostedZoneName for CrossAccountZoneDelegationRecord
The current implementation of
CrossAccountZoneDelegationRecord
requires users to pass theparentHostedZoneId
which is not so easy since we cannot pass references cross account.This implementation lets them pass the zone name and queries the route53 API to get the zoneId.
The ARN of the delegation role cannot be passed around to stacks since they will have different environments (this is cross account delegation and CDK does not allow passing references across environments).
This means that users need to import the delegation role in the stack containing the child zone. Since it needs to be imported, the users would need the role ARN. Now this ARN can either be hard-coded or constructed. Hard-coding the ARN is not entirely feasible since that would require deploying the parent stack first, then making code change and then deploying child stack in pipelines.
With role name, the ARN can be easily constructed (refer readme for importing role) and it provides a better user experience.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license