-
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]: regression in regexp validation #33368
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #33359. |
From the AWS Cloud Map API Reference:
|
% make testacc TESTARGS='-run=TestAccServiceDiscoveryInstance_private' PKG=servicediscovery
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/servicediscovery/... -v -count 1 -parallel 20 -run=TestAccServiceDiscoveryInstance_private -timeout 180m
=== RUN TestAccServiceDiscoveryInstance_private
=== PAUSE TestAccServiceDiscoveryInstance_private
=== CONT TestAccServiceDiscoveryInstance_private
instance_test.go:27: Step 1/3 error: Error running pre-apply refresh: exit status 1
Error: Invalid map key
with aws_service_discovery_instance.test,
on terraform_plugin_test.tf line 40, in resource "aws_service_discovery_instance" "test":
40: AWS_INSTANCE_IPV4 = "10.0.0.1"
Map key expected to match regular expression "^[0-9A-Za-z!~-]+$":
AWS_INSTANCE_IPV4
Error: Invalid map value
with aws_service_discovery_instance.test,
on terraform_plugin_test.tf line 40, in resource "aws_service_discovery_instance" "test":
40: AWS_INSTANCE_IPV4 = "10.0.0.1"
Map value expected to match regular expression "^([0-9A-Za-z!~-][0-9A-Za-z
\\t!~-]*){0,1}[0-9A-Za-z!~-]{0,1}$": AWS_INSTANCE_IPV4 => 10.0.0.1
Error: Invalid map key
with aws_service_discovery_instance.test,
on terraform_plugin_test.tf line 41, in resource "aws_service_discovery_instance" "test":
41: AWS_INSTANCE_IPV6 = "2001:0db8:85a3:0000:0000:abcd:0001:2345"
Map key expected to match regular expression "^[0-9A-Za-z!~-]+$":
AWS_INSTANCE_IPV6
Error: Invalid map value
with aws_service_discovery_instance.test,
on terraform_plugin_test.tf line 41, in resource "aws_service_discovery_instance" "test":
41: AWS_INSTANCE_IPV6 = "2001:0db8:85a3:0000:0000:abcd:0001:2345"
Map value expected to match regular expression "^([0-9A-Za-z!~-][0-9A-Za-z
\\t!~-]*){0,1}[0-9A-Za-z!~-]{0,1}$": AWS_INSTANCE_IPV6 =>
2001:0db8:85a3:0000:0000:abcd:0001:2345
--- FAIL: TestAccServiceDiscoveryInstance_private (2.67s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/servicediscovery 7.723s
FAIL
make: *** [testacc] Error 1 |
Thanks! Works. |
This functionality has been released in v5.16.1 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.0
Affected Resource(s)
Expected Behavior
Functional as in v5.15.0
Actual Behavior
Broken as in v5.16.0
Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Downgrade module to v5.15.0 -- works. Update to v5.16.0 -- broken.
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
Possible cause or point of interest: 8963cdd
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: