-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Error using data.aws_vpc_endpoint_service
in AWS US GovCloud
#4398
Comments
It looks like the functionality to filter VPC endpoint services by service name isn't working in GovCloud:
|
If GovCloud doesn't support filtering on service name, we might want to revert to something like the logic we had in 1.8 when the region is GovCloud, or possibly if the number of results is greater than one: By the way, the acceptance tests for this data source hard-code regions and availability zones, so I can't run them in GovCloud. GovCloud also apparently only has endpoint services for s3 and dynamo, so tests for the ec2 endpoint service wouldn't work anyway. Any thoughts on making these tests more flexible about regions and skipping tests based on partition? |
This was working under v1.12.0 when that was first released, but now even that version fails. So I think something about the response has changed since then, violating some assumption in the provider code. |
@lorengordon It could be that you have an additional VPC endpoint since the last successful time you ran - If the S3 endpoint was the only endpoint then the code would have worked. @jmcarp Agree on the solution - The issue will be with testing; There was some talk about easing GovCloud testing but I'm not sure what the status on that is. |
@ewbankkit I checked for multiple endpoints before reporting, because the error message appears to indicate something like that. But no, there is only a single endpoint in the account. (It would actually be quite odd for there to ever be multiple endpoints, since I use this account solely for testing my terraform modules/workflows and nothing else is ever going on in the account. 🤷♂️ ) |
I just discovered this same problem as well. To get around it I've been using aws provider v1.8. |
The same problem in China region~ |
@Coffee-Bene #4592 should fix the |
@ewbankkit Today,I test in my environment,it is ok ,thanks~ |
Sorry for the delay getting the fix merged -- it will release shortly with version 1.29.0 of the AWS provider. |
This has been released in version 1.29.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
Thanks @bflad and @ewbankkit! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
data.aws_vpc_endpoint_service
Terraform Configuration Files
Straight from the example:
Debug Output
https://gist.github.com/lorengordon/f10b04a991edd0f1474bacc9ea1a3146
Expected Behavior
The
data.aws_vpc_endpoint_service
should return the service name just as it does for the commercial regions.Actual Behavior
Got the error,
multiple VPC Endpoint Services matched; use additional constraints to reduce matches to a single VPC Endpoint Service
.Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: