-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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]: aws_lightsail_instance, name
verification always fails.
#33386
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
The regex is now: I suspect the regex should be: Edit. I was wrong. See ewbankkit's comment. |
AWS console
|
"name": { | |
Type: schema.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: validation.All( | |
validation.StringLenBetween(2, 255), | |
validation.StringMatch(regexache.MustCompile(`^[a-zA-Z0-9]`), "must begin with an alphanumeric character"), | |
validation.StringMatch(regexache.MustCompile(`^[a-zA-Z0-9_\-.]+[^._\-]$`), "must contain only alphanumeric characters, underscores, hyphens, and dots"), | |
), | |
}, |
v5.16.1
terraform-provider-aws/internal/service/lightsail/instance.go
Lines 67 to 76 in 36d6c95
"name": { | |
Type: schema.TypeString, | |
Required: true, | |
ForceNew: true, | |
ValidateFunc: validation.All( | |
validation.StringLenBetween(2, 255), | |
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z]`), "must begin with an alphanumeric character"), | |
validation.StringMatch(regexache.MustCompile(`^[0-9A-Za-z_.-]+[_.^-]$`), "must contain only alphanumeric characters, underscores, hyphens, and dots"), | |
), | |
}, |
I believe that the problem is caused by the moving of the |
name
verification always fails.
This functionality has been released in v5.16.2 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.5.7
AWS Provider Version
5.16.1
Affected Resource(s)
Expected Behavior
Actual Behavior
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
Panic Output
No response
Important Factoids
Downgrade the "provider" to 5.15.0 will result in successful validation.
hoge.tf
operation
output
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: