-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Dualstack prefix forcibly removed from ALIAS records #6480
Comments
So it's just impossible to have a dualstack alias record if you use terraform??? |
A perpetual changed loop was "fixed" by just forcing all alias records to non dualstack! 🤦♂️ |
I'm having a related issue with terraform 0.12.12 / aws provider 2.33. If I create an alias record and then add/remove the dualstack prefix in the terraform configuration, Terraform detects no changes to apply so the record does not get updated. |
Any news about it???????? |
I am having the same issue. Is this going to be picked up eventually? |
Updating the code reference mentioned: https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/route53/record.go#L956 |
We are facing the same issue.
When we can expect to be resolved |
This functionality has been released in v4.24.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
For anyone looking finding this issue post 4.24.0 release: Here is what I found:
My conclusion is that for recently created VPC dualstack ALBs, the |
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. |
Community Note
Terraform Version
Terraform v0.11.10
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
I imported an existing DNS record into terraform, which was an ALIAS record that contained a "dualstack" prefix in its alias target. I then ran a trivial apply operation on the resource to change the "allow_overwrite" value to false. This should not have silently changed the ALIAS target in the record.
Actual Behavior
The initial import worked fine, but when I run any apply whatsoever on the resource it ends up silently stripping off the "dualstack" prefix without saying anything in the plan.
Steps to Reproduce
terraform apply
with any changes after importing an ALIAS record whose target has a dualstack prefixImportant Factoids
I think I narrowed down why this is happening. I inspected the debug output and found that the prefix did indeed seem to be stripped off halfway through the apply operation, so I checked the provider code and found this function. I haven't read this in any detail but it appears this would cause any ALIAS record in terraform to have its dualstack prefix stripped off 100% of the time. Can anyone provide any insight into why this would be the desired/appropriate behavior? We actually do want many of our ALIAS records to use dualstack, so this pretty much means the route 53 resources are largely not useful at all in our case.
References
The text was updated successfully, but these errors were encountered: