-
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
support routing policy setting for ARecord class #4391
Comments
Hi @geekybaiyi, Thank you for submitting the request! From what I could tell in the docs, it looks like all the parameters supported in Cloudformation are supported in the CDK. Could you tell me which parameters you are missing? |
how about these ? |
Indeed, they are missing from the L2 const zone = HostedZone.fromLookup(this, 'zone', {domainName: 'example.com'});
const record = new ARecord(this, 'A', {
zone,
target: RecordTarget.fromIpAddresses('1.1.1.1'),
recordName: 'www',
});
const recordSet = (record.node.defaultChild as CfnRecordSet);
recordSet.failover = 'PRIMARY'; |
I noticed an PR is created associated with this issue. |
How can one reach CfnRecordSet from an ApplicationLoadBalancedFargateService object? |
The CfnRecordSet seems to be missing the Latency routing policy as well. Is there a timeline for when that will be added? Additionally, the policies also appear to be configurable for more than just A Records. CNAMEs for example allow this policy. |
@ryanvaloris you can enable latency routing by setting the const record = new ARecord(this, 'apiA', {
zone: zone,
target: target,
recordName: apiName,
});
const recordSet = (record.node.defaultChild as CfnRecordSet);
recordSet.region = region;
recordSet.setIdentifier = region; |
Is there a way to create cross region Arecord or CNAME? I want to implement latency based routing where I will creating CNAMEs for latency based routing.
Where |
You the real MVP |
We shouldn't have to be going into the L1 construct like this. The L2 should support all of the routing policies. Is this ticket still on the roadmap? I see it's been around for 3 years now |
Bumping this feature request. This L2 construct would be awesome to have. |
Hi, Im expecting to be able to setup the type as weighted and Im doing it this way: const aRecord = new ARecord(this.scope, resourceId, {
zone: this.hostedZone,
target: RecordTarget.fromAlias(new CloudFrontTarget(distribution)),
recordName: domain,
})
const recordSet = aRecord.node.defaultChild as CfnRecordSet
recordSet.setIdentifier = 'UniqueWeightedIdentifier' // this needs to be unique from all your other A Weighted Records
recordSet.weight = 200 And it works fine, it will be easier of we can add this using constructor props. |
Bump on this request but for CNAME records. |
It's already more than 2 years since jdnz amazing answer... do we know if there's already a nicer way to support latency-based A records from CDK? 👀 |
Hi there. Additionally, I plan to implement features such as latency based routing (#28723) and IP-based routing(#28833) or so. I believe it will still take some time before the merge, but please wait a little longer. |
thanks @badmintoncryer! |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
hi there. I have already implemented the Failover routing strategy - but haven't published it yet as it has some dependencies to health checks on which I'm working on rn #9481 |
Please support routing policy parameters for ARecord in CDK.
Not all parameters are supported in CDK Route53 module currently. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-recordset.html
any plan to support those in the future?
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: