-
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
Migrate Outposts
resources to AWS SDK V2
#38075
Migrate Outposts
resources to AWS SDK V2
#38075
Conversation
Community NoteVoting for Prioritization
For Submitters
|
% make testacc TESTARGS='-run=TestAccEC2Outposts' PKG=ec2 ACCTEST_PARALLELISM=4
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/ec2/... -v -count 1 -parallel 4 -run=TestAccEC2Outposts -timeout 360m
=== RUN TestAccEC2OutpostsCoIPPoolDataSource_filter
=== PAUSE TestAccEC2OutpostsCoIPPoolDataSource_filter
=== RUN TestAccEC2OutpostsCoIPPoolDataSource_id
=== PAUSE TestAccEC2OutpostsCoIPPoolDataSource_id
=== RUN TestAccEC2OutpostsCoIPPoolsDataSource_basic
=== PAUSE TestAccEC2OutpostsCoIPPoolsDataSource_basic
=== RUN TestAccEC2OutpostsCoIPPoolsDataSource_filter
=== PAUSE TestAccEC2OutpostsCoIPPoolsDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayDataSource_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayDataSource_basic
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableDataSource_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableDataSource_basic
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableDataSource_filter
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableDataSource_localGatewayID
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableDataSource_localGatewayID
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableDataSource_outpostARN
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableDataSource_outpostARN
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_basic
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_disappears
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_disappears
=== RUN TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_tags
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_tags
=== RUN TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_basic
=== RUN TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_filter
=== PAUSE TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayRoute_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayRoute_basic
=== RUN TestAccEC2OutpostsLocalGatewayRoute_disappears
=== PAUSE TestAccEC2OutpostsLocalGatewayRoute_disappears
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_filter
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_id
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_id
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_tags
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_tags
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_filter
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_localGatewayID
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_localGatewayID
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_tags
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_tags
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_basic
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_basic
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_filter
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_filter
=== RUN TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_tags
=== PAUSE TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_tags
=== RUN TestAccEC2OutpostsLocalGatewaysDataSource_basic
=== PAUSE TestAccEC2OutpostsLocalGatewaysDataSource_basic
=== CONT TestAccEC2OutpostsCoIPPoolDataSource_filter
=== CONT TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_filter
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_localGatewayID
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_id
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_localGatewayID
outposts_local_gateway_virtual_interface_group_data_source_test.go:43: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_localGatewayID (0.82s)
=== CONT TestAccEC2OutpostsLocalGatewaysDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_id
outposts_local_gateway_virtual_interface_data_source_test.go:47: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_id (0.82s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_tags
=== NAME TestAccEC2OutpostsCoIPPoolDataSource_filter
outposts_coip_pool_data_source_test.go:20: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsCoIPPoolDataSource_filter (0.88s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_filter
=== NAME TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_filter
outposts_local_gateway_route_tables_data_source_test.go:38: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_filter (0.91s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_tags
outposts_local_gateway_virtual_interface_groups_data_source_test.go:62: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_tags (0.17s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_tags
=== NAME TestAccEC2OutpostsLocalGatewaysDataSource_basic
outposts_local_gateways_data_source_test.go:19: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewaysDataSource_basic (0.17s)
=== CONT TestAccEC2OutpostsLocalGatewayRoute_disappears
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_filter
outposts_local_gateway_virtual_interface_groups_data_source_test.go:41: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_filter (0.15s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_filter
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_basic
outposts_local_gateway_virtual_interface_groups_data_source_test.go:21: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupsDataSource_basic (0.16s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_filter
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_tags
outposts_local_gateway_virtual_interface_group_data_source_test.go:66: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_tags (0.16s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableDataSource_localGatewayID
=== NAME TestAccEC2OutpostsLocalGatewayRoute_disappears
outposts_local_gateway_route_test.go:60: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRoute_disappears (0.16s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_filter
outposts_local_gateway_virtual_interface_data_source_test.go:22: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_filter (0.15s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_tags
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_filter
outposts_local_gateway_virtual_interface_group_data_source_test.go:22: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceGroupDataSource_filter (0.18s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_disappears
=== NAME TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_basic
outposts_local_gateway_route_tables_data_source_test.go:19: skipping since no Outposts found
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableDataSource_localGatewayID
outposts_local_gateway_route_table_data_source_test.go:64: skipping since no Outposts found
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableDataSource_outpostARN
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTablesDataSource_basic (0.18s)
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableDataSource_localGatewayID (0.18s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_basic
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_tags
outposts_local_gateway_route_table_vpc_association_test.go:82: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_tags (0.19s)
=== CONT TestAccEC2OutpostsLocalGatewayDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_disappears
outposts_local_gateway_route_table_vpc_association_test.go:59: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_disappears (0.14s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableDataSource_filter
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_basic
outposts_local_gateway_route_table_vpc_association_test.go:29: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableVPCAssociation_basic (0.15s)
=== CONT TestAccEC2OutpostsLocalGatewayRouteTableDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableDataSource_outpostARN
outposts_local_gateway_route_table_data_source_test.go:86: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableDataSource_outpostARN (0.15s)
=== CONT TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_tags
=== NAME TestAccEC2OutpostsLocalGatewayDataSource_basic
outposts_local_gateway_data_source_test.go:20: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayDataSource_basic (0.15s)
=== CONT TestAccEC2OutpostsCoIPPoolsDataSource_basic
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableDataSource_filter
outposts_local_gateway_route_table_data_source_test.go:42: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableDataSource_filter (0.15s)
=== CONT TestAccEC2OutpostsCoIPPoolsDataSource_filter
=== NAME TestAccEC2OutpostsLocalGatewayRouteTableDataSource_basic
outposts_local_gateway_route_table_data_source_test.go:20: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRouteTableDataSource_basic (0.16s)
=== CONT TestAccEC2OutpostsLocalGatewayRoute_basic
=== NAME TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_tags
outposts_local_gateway_virtual_interface_data_source_test.go:74: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayVirtualInterfaceDataSource_tags (0.18s)
=== CONT TestAccEC2OutpostsCoIPPoolDataSource_id
=== NAME TestAccEC2OutpostsCoIPPoolsDataSource_basic
outposts_coip_pools_data_source_test.go:19: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsCoIPPoolsDataSource_basic (0.21s)
=== NAME TestAccEC2OutpostsCoIPPoolsDataSource_filter
outposts_coip_pools_data_source_test.go:38: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsCoIPPoolsDataSource_filter (0.23s)
=== NAME TestAccEC2OutpostsLocalGatewayRoute_basic
outposts_local_gateway_route_test.go:30: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsLocalGatewayRoute_basic (0.20s)
=== NAME TestAccEC2OutpostsCoIPPoolDataSource_id
outposts_coip_pool_data_source_test.go:41: skipping since no Outposts found
--- SKIP: TestAccEC2OutpostsCoIPPoolDataSource_id (0.25s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 6.783s @DanielRieske We are going to work with AWS to try and get this tested against actual Outposts instances. |
…t maybe in other appends (staticcheck)'.
Sounds good, let me know if there is anything more I can do for this PR. |
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 🚀.
Going to merge this one to unblock migration of VPC resources (which should complete the migration of the ec2
service package).
We will test this (and other Outposts functionality) once we get access.
This functionality has been released in v5.58.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'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
This PR migrates the
Outposts
resources to AWS SDKv2.Note for the reviewer, that I wasn't able to run the tests as my account doesn't have any Outposts.
Relations
Closes #36196
References
Output from Acceptance Testing