Skip to content

Route53 ARecord ID change causing "resource already exists" error on redeployment #204

Closed Answered by patrickufer
patrickufer asked this question in Q&A
Discussion options

You must be logged in to vote

@bestickley Another approach that might work would be to bump aws-cdk-lib version to latest to let us set weighted routing on the DNS records (weighted routing was only added to cdk in v2.122.0). Then set weight of the new ARecord and AAAARecord to 1 as well as the existing records so they split traffic evenly. Deployment should work since the identical records can coexist if set to weighted routing.
Concept explained way better here: https://stackoverflow.com/questions/48832132/cloudformation-route53-update-an-existing-recordset

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@patrickufer
Comment options

@bestickley
Comment options

@patrickufer
Comment options

@patrickufer
Comment options

Answer selected by patrickufer
@bestickley
Comment options

@patrickufer
Comment options

@bestickley
Comment options

@patrickufer
Comment options

Comment options

You must be logged in to vote
1 reply
@bestickley
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants