If the domain name includes any characters other than a to z, 0 to 9, - (hyphen), or _ (underscore), Route 53 API actions return the characters as escape codes. This is true whether you specify the characters as characters or as escape codes when you create the entity. The Route 53 console displays the characters as characters, not as escape codes.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.9.8
AWS Provider Version
5.76.0
Affected Resource(s)
aws_route53_zone.reverse_zone
aws_route53_record
Expected Behavior
Route53 hosted zone and records with
/
should be recognized by Terraform properlyActual Behavior
Terraform can't recognize a hosted zone and records when the name contains an escaped characters like
/
and repeatedly showsdiff
.Relevant Error/Panic Output Snippet
Terraform Configuration Files
The problem will be reproduced for
aws_route53_zone
and/oraws_route53_record
.Steps to Reproduce
Create a resources with
terraform apply
As for the zone, apply worked. As for the record,
apply
failed with the error message above.Execute
terraform plan
again to confirm no diff but we saw the diffDebug Output
No response
Panic Output
No response
Important Factoids
Normally, people do not use
/
but it could be possible to configure "Classless IN-ADDR.ARPA delegation" (aka "reverse DNS zone")References
https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DomainNameFormat.html says:
Would you like to implement a fix?
Yes