-
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
d/vpc_endpoint_service: support cross-region endpoint services #40795
d/vpc_endpoint_service: support cross-region endpoint services #40795
Conversation
Community NoteVoting for Prioritization
For Submitters
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @jscaltreto 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTOR guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccVPCEndpointServiceDataSource_' PKG=ec2 ACCTEST_PARALLELISM=3
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/ec2/... -v -count 1 -parallel 3 -run=TestAccVPCEndpointServiceDataSource_ -timeout 360m
2025/01/07 10:54:16 Initializing Terraform AWS Provider...
=== RUN TestAccVPCEndpointServiceDataSource_ServiceType_gateway
=== PAUSE TestAccVPCEndpointServiceDataSource_ServiceType_gateway
=== RUN TestAccVPCEndpointServiceDataSource_ServiceType_interface
=== PAUSE TestAccVPCEndpointServiceDataSource_ServiceType_interface
=== RUN TestAccVPCEndpointServiceDataSource_custom
=== PAUSE TestAccVPCEndpointServiceDataSource_custom
=== RUN TestAccVPCEndpointServiceDataSource_Custom_filter
=== PAUSE TestAccVPCEndpointServiceDataSource_Custom_filter
=== RUN TestAccVPCEndpointServiceDataSource_CustomFilter_tags
=== PAUSE TestAccVPCEndpointServiceDataSource_CustomFilter_tags
=== RUN TestAccVPCEndpointServiceDataSource_Custom_crossRegion
=== PAUSE TestAccVPCEndpointServiceDataSource_Custom_crossRegion
=== CONT TestAccVPCEndpointServiceDataSource_ServiceType_gateway
=== CONT TestAccVPCEndpointServiceDataSource_Custom_filter
=== CONT TestAccVPCEndpointServiceDataSource_custom
--- PASS: TestAccVPCEndpointServiceDataSource_ServiceType_gateway (9.02s)
=== CONT TestAccVPCEndpointServiceDataSource_Custom_crossRegion
--- PASS: TestAccVPCEndpointServiceDataSource_Custom_filter (228.12s)
=== CONT TestAccVPCEndpointServiceDataSource_CustomFilter_tags
--- PASS: TestAccVPCEndpointServiceDataSource_custom (250.39s)
=== CONT TestAccVPCEndpointServiceDataSource_ServiceType_interface
--- PASS: TestAccVPCEndpointServiceDataSource_ServiceType_interface (8.27s)
--- PASS: TestAccVPCEndpointServiceDataSource_Custom_crossRegion (325.91s)
--- PASS: TestAccVPCEndpointServiceDataSource_CustomFilter_tags (238.87s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 472.456s
@jscaltreto Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.83.0 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 updated the provider to 5.83.0 and specified service_regions but getting a validation error
Full resource code
TF version is 1.6.5 if it matters |
@jscaltreto Am I doing something wrong? Or it's some bug in the code? |
I feel like the issue is that it's actually called |
@aaleksandrov I think you're mixing up the |
Description
This PR adds support for cross-region VPC endpoint services in the
aws_vpc_endpoint_service
data source. A new argument,service_regions
is added, corresponding to the ServiceRegion.N request parameter. Additionally, theregion
attribute is added (populated from the API response) as it can no longer be assumed that returned services are in the same region as the provider.Relations
Closes #40792.
Relates #40583.
Relates #40346.
References
DescribeVpcEndpointServices Documentation
Output from Acceptance Testing