-
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(aws-route53-targets): Support for Elastic Beanstalk environment URLs #16305
Conversation
…README doc update
924c117
to
ebfd5f2
Compare
packages/@aws-cdk/aws-route53-targets/lib/elastic-beanstalk-environment-target.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-route53-targets/lib/elastic-beanstalk-environment-target.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-route53-targets/lib/elastic-beanstalk-environment-target.ts
Show resolved
Hide resolved
} | ||
|
||
const dnsName = this.environmentEndpoint; | ||
const region = cdk.Fn.select(2, cdk.Fn.split('.', dnsName)); |
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.
If we're not allowing Tokens (above), then this can be a simple dnsName.split
instead of the Fn.split
.
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.
Tentative approval.
I'll let you decide if you have the time to support Tokens here, which is definitely something we should eventually support for this class, or if we can add it in a follow-up sometime later.
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). |
…URLs (aws#16305) ## Summary This PR adds a new Route53 target `ElasticBeanstalkEnvironmentTarget` for creating RecordSets that target Elastic Beanstalk environment URLs. E.g. ```ts const ebsEnvironmentUrl = 'mysampleenvironment.xyz.us-east-1.elasticbeanstalk.com'; new route53.ARecord(this, 'AliasRecord', { zone, target: route53.RecordTarget.fromAlias(new alias.ElasticBeanstalkEnvironmentTarget(ebsEnvironmentUrl)), }); ``` [How to find your Elastic Beanstalk environment URL](https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-to-beanstalk-environment.html#routing-to-beanstalk-environment-get-domain-name) Fixes: aws#3206 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Summary
This PR adds a new Route53 target
ElasticBeanstalkEnvironmentTarget
for creating RecordSets that target Elastic Beanstalk environment URLs.E.g.
How to find your Elastic Beanstalk environment URL
Fixes: #3206
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license