-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Terraform 0.6.11 fails to apply TTL changes to Route53 DNS entries for Weighted Round Robin #5312
Comments
@eedwardsdisco Thank you for reporting this. Unfortunately #6954 does not address this problem. The problem here is that AWS won't allow different TTLs for records in the same weighted set. What's happening here is Terraform is handling each of these resources separately, so it's issuing A workaround I've found is to change the With regret, there isn't much I can do here. I'm going to close this issue, but feel free to follow up with more questions if you have any. |
I'm going to (very gently!) call shenanigans on this one. While it is true that each resource in Terraform normally has no real knowledge of any other resource (other than the edges in the dependency tree), there's no reason for Terraform not to batch all DNS changes together as a single change batch. Not only is this faster, but it also is more audit-friendly because all the changes are marked as having been done together in CloudTrail. This could done by creating a meta-resource that acts as a collector for all DNS changes within the working tree of resources. This meta-resource would have the superset of all edges and just be a collection of DNS changes. Then, when the tree is walked for what API calls to make, it would generate a single batch of DNS changes at the right time in the tree. |
for now, changing the TTL on 1 of the weighted record set records in the Amazon Console automatically updates all of them.. so you can apply this through the UI (if no downtime should be tolerated and you have the option of using the UI) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
I have 3 Route53 resource records which are part of a Weighted Set.
I am trying to change the TTL value on them, but it appears that the way that Terraform batches these changes, I'm unable to change the TTL.
This breaks the ability to use Terraform to manage DNS for these resources.
Examples
Before
After
Terraform Plan
Terraform Apply
The text was updated successfully, but these errors were encountered: