Skip to content

Conversation

@bmoylan
Copy link

@bmoylan bmoylan commented Nov 7, 2025

Description

The new datasource aws_vpc_endpoints returns a list of zero or more DescribeVpcEndpoints results given the configured filters. This is similar to the existing aws_vpc_endpoint data source, but does not require exactly one result.

Relations

Closes #43472
Closes #20192

References

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpoints.html

Output from Acceptance Testing

% make testacc TESTS=TestAccVPCEndpointsDataSource PKG=ec2
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
make: Running acceptance tests on branch: 🌿 bm/vpc_endpoints_data_source 🌿...
TF_ACC=1 go1.24.10 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccVPCEndpointsDataSource'  -timeout 360m -vet=off
2025/11/07 11:54:41 Creating Terraform AWS Provider (SDKv2-style)...
2025/11/07 11:54:41 Initializing Terraform AWS Provider (SDKv2-style)...
=== RUN   TestAccVPCEndpointsDataSource_basic
=== PAUSE TestAccVPCEndpointsDataSource_basic
=== RUN   TestAccVPCEndpointsDataSource_filter
=== PAUSE TestAccVPCEndpointsDataSource_filter
=== RUN   TestAccVPCEndpointsDataSource_tags
=== PAUSE TestAccVPCEndpointsDataSource_tags
=== RUN   TestAccVPCEndpointsDataSource_serviceName
=== PAUSE TestAccVPCEndpointsDataSource_serviceName
=== CONT  TestAccVPCEndpointsDataSource_basic
=== CONT  TestAccVPCEndpointsDataSource_tags
=== CONT  TestAccVPCEndpointsDataSource_filter
=== CONT  TestAccVPCEndpointsDataSource_serviceName
--- PASS: TestAccVPCEndpointsDataSource_filter (39.70s)
--- PASS: TestAccVPCEndpointsDataSource_tags (39.80s)
--- PASS: TestAccVPCEndpointsDataSource_basic (47.89s)
--- PASS: TestAccVPCEndpointsDataSource_serviceName (69.29s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/ec2	74.901s

@bmoylan bmoylan requested a review from a team as a code owner November 7, 2025 19:56
@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

Community Guidelines

This comment is added to every new Pull Request to provide quick reference to how the Terraform AWS Provider is maintained. Please review the information below, and thank you for contributing to the community that keeps the provider thriving! 🚀

Voting for Prioritization

  • Please vote on this Pull Request by adding a 👍 reaction to the original post to help the community and maintainers prioritize it.
  • Please see our prioritization guide for additional information on how the maintainers handle prioritization.
  • Please do not leave +1 or other comments that do not add relevant new information or questions; they generate extra noise for others following the Pull Request and do not help prioritize the request.

Pull Request Authors

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

✅ Thank you for correcting the previously detected issues! The maintainers appreciate your efforts to make the review process as smooth as possible.

@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. documentation Introduces or discusses updates to documentation. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. generators Relates to code generators. service/vpc Issues and PRs that pertain to the vpc service. size/XL Managed by automation to categorize the size of a PR. labels Nov 7, 2025
@bmoylan bmoylan force-pushed the bm/vpc_endpoints_data_source branch from 39b4408 to 51fafdb Compare November 7, 2025 19:58
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Introduces or discusses updates to documentation. generators Relates to code generators. new-data-source Introduces a new data source. service/vpc Issues and PRs that pertain to the vpc service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add aws_vpc_endpoints to get a list of vpc endpoints New Data Source: aws_vpc_endpoints

2 participants