feat(aws-route53-targets): Support for Elastic Beanstalk environment URLs#16305
feat(aws-route53-targets): Support for Elastic Beanstalk environment URLs#16305mergify[bot] merged 18 commits intomasterfrom
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.
If we're not allowing Tokens (above), then this can be a simple dnsName.split instead of the Fn.split.
njlynch
left a comment
There was a problem hiding this comment.
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
ElasticBeanstalkEnvironmentTargetfor 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