[Bug]: route53profiles_association does not validate name
#39793
Labels
bug
Addresses a defect in current functionality.
service/route53profiles
Issues and PRs that pertain to the route53profiles service.
Terraform Core Version
1.7.5
AWS Provider Version
5.72.1
Affected Resource(s)
Expected Behavior
The
name
attribute should validate against a regex at plan time to prevent plans with unacceptable names from failing with a400
.Actual Behavior
If you try to apply a plan with a
name
that does not match the regex of(?!^[0-9]+$)([a-zA-Z0-9\\-_' ']+)
you will receive a 400 error.For example, consider the resource:
The plan for this resource succeeds, but on apply you will get:
Enabling debug logs reveals the cause:
This is unfortunately undocumented in all of the AWS docs I can find, but I will file a separate support ticket with AWS to get it documented.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
To reproduce, attempt to apply the above Terraform.
Debug Output
I can post more if needed, but the only relevant output is:
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: