-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
aws-route53-targets: Add Global Accelerator target for Route53 alias #12839
aws-route53-targets: Add Global Accelerator target for Route53 alias #12839
Comments
Thanks for the feature request and implementation! Can you submit a PR for this, and add some tests? Would be happy to work with you to get this incorporated into the CDK. |
Awesome, will do! |
Hi @njlynch - I've added a PR - #13407 for the new feature adding a Route53 alias target for Global Accelerator. It has unit tests and integration tests, and I've run the integration test script against my personal AWS account to prove it deploys as expected. I have added a README section to the module in line with the other examples: Let me know if there are any issues and I'll take a look. |
|
Add a new Route53 alias target implementation for Global Accelerator.
Use Case
You can create a Global Accelerator with CDK as documented here:
https://docs.aws.amazon.com/cdk/api/latest/docs/aws-globalaccelerator-readme.html
However when you try to create a Route53 alias to the Global Accelerator as discussed here:
"To use your custom domain name with Global Accelerator when you use Route 53 as your DNS service, you create an alias record that points your custom domain name to the DNS name assigned to your accelerator. An alias record is a Route 53 extension to DNS."
https://docs.aws.amazon.com/global-accelerator/latest/dg/dns-addressing-custom-domains.mapping-your-custom-domain.html
There is CloudFormation support for it as discussed here:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget-1.html
But no CDK support.
Proposed Solution
Add a new CDK alias target class 'GlobalAcceleratorTarget', which simplifies creating an alias target to a Global Accelerator.
The Hosted Zone should be set as per the documentation here:
"Amazon Route 53 Hosted Zone ID: Z2BJ6XQ5FK7U4H"
https://docs.aws.amazon.com/general/latest/gr/global_accelerator.html
The Global Accelerator could be passed in the constructor, either as an object or a string (the DNS).
Working implementation:
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: