-
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
aws_route53_record can overwrite existing record not in state #4493
Comments
Hi @asafpelegcodes 👋 Sorry you ran into unexpected behavior here. I'm going to repost my closing comment from #1094 (comment) and close this out as hopefully it answers any questions regarding this -- basically you can use the Contrary to how almost all Terraform resources work, the In #2926, released in v1.10.0 of the AWS provider, we introduced the In the next major version of the AWS provider, we plan to switch the attribute so it defaults to |
allow_overwrite is deprecated , how can I UPSERT route53 records now? |
according to https://www.terraform.io/docs/providers/aws/r/route53_record.html i believe allow_overwrite option is still valid at this point. i have no issue of using allow_overwrite option. |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Running...
Terraform v0.11.7
provider.aws v1.17.0
I have a route53 record that was created manually through the AWS console. Let's say it's for a record with the name
something.example.com
Assume the record is an A record with an alias to a load balanacer...
If I apply the following terraform configuration bellow the A record is overwritten. There is no notice about this in the plan about destroying anything or an error saying the record already exists...
My assumption is that terraform should throw an error from AWS that there is a record uniqueness constraint being violated by attempting to create a record with an identical name. It should not silently overwrite the existing record.
The text was updated successfully, but these errors were encountered: