[Bug]: Unable to create new domains via aws_route53domains_registered_domain #37670
Labels
bug
Addresses a defect in current functionality.
service/route53domains
Issues and PRs that pertain to the route53domains service.
Terraform Core Version
1.8.1
AWS Provider Version
5.50.0
Affected Resource(s)
aws_route53domains_registered_domain
Expected Behavior
When trying to create a new domain (i.e. does not exist in Route53 already), we should be able to. This is an example from the plan:
Actual Behavior
The new domain does not get created and we get an error instead.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Run plan/apply
Debug Output
No response
Panic Output
No response
Important Factoids
I see in https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/route53domains/registered_domain.go#L268 that
findDomainDetailByName
is called which will return an error of the domain record is not found. I suspect thatresourceRegisteredDomainRead
(in the same file) should be called instead since it accounts forIsNewResource
when there is aNotFound
error.References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: