-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
[Bug]: Error deleting Route53 Record. operation error. https response error StatusCode: 400 Tried to delete resource record set but it was not found #37806
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@el-chazmo Thanks for raising this issue. |
Apologies @ewbankkit The above code was incorrect, as suspected. The below is the specific code that is used to generate the Record resource "aws_route53_record" "certificate" { allow_overwrite = true Terraform destroy (1st) shows: - module.dns.aws_route53_record.certificate["*.example"]: Destroying... [id=XXXXX__yyyyy.example._CNAME] │ Error: deleting Route53 Record (XXXXX__yyyyy.example._CNAME): operation error Route 53: ChangeResourceRecordSets, https response error StatusCode: 400, RequestID: xxx-xxx-xxx, InvalidChangeBatch: [Tried to delete resource record set [name='_yyyyy.example.', type='CNAME'] but it was not found] Terraform destroy (2nd) shows: - module.dns.aws_route53_zone.zone: Destroying... [id=XXXXX] |
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.53.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! |
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. |
Terraform Core Version
1.8.4
AWS Provider Version
5.52
Affected Resource(s)
aws_route53_record
aws_route53_zone
Expected Behavior
When performing terraform destroy - aws_route53 cname record is removed first time.
Actual Behavior
terraform destroy fails first time
│ Error: deleting Route53 Record operation error Route 53: ChangeResourceRecordSets, https response error StatusCode: 400, RequestID:xx-xx-xx, InvalidChangeBatch: [Tried to delete resource record set [name='xxxxx.', type='CNAME'] but it was not found]
terraform destroy (2nd time) succeeds
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
resource "aws_route53_record" "setup" {
zone_id = local.zoneid
name = "example.network.name"
type = "A"
ttl = 300
records = ["127.0.0.1"]
}
Steps to Reproduce
install hashicorp/aws latest version
NOTE: <5.51 causes no errors. Error only seen >= 5.51
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: