Skip to content
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

Tech debt: Isolate AWS SDK for Go v1 references #39814

Merged
merged 985 commits into from
Oct 23, 2024

Conversation

ewbankkit
Copy link
Contributor

@ewbankkit ewbankkit commented Oct 21, 2024

Description

From July 31 2024 the AWS SDK for Go v1 has been placed in maintenance mode, meaning that the SDK receives only critical bug and security fixes and does not receive API updates for services or support for new AWS Regions. One year later, as of July 31 2025, the SDK will be at end-of-support, with no further updates.
The Terraform AWS Provider has steadily been migrating to the fully supported AWS SDK for Go v2, and thanks to sustained community contributions, at the time of writing (mid-October 2024) migration of resources and data sources for all bar 1 service has been completed. The outstanding migration is the Simple DB service – there is no support in AWS SDK for Go v2 although AWS reports continued usage of the service. We intend to drop support for the aws_simpledb_domain resource at the next major version (v6.0.0) of the Terraform AWS Provider.
The effective completion of the migration allows us to clean up traces of AWS SDK for Go v1 support from all parts of the provider except the internal/conns and internal/service/simpledb packages.

Relations

Relates #32976.

References

Output from Acceptance Testing

% make testacc TESTARGS='-run=TestAccSimpleDBDomain_' PKG=simpledb
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/simpledb/... -v -count 1 -parallel 20  -run=TestAccSimpleDBDomain_ -timeout 360m
2024/10/21 14:00:52 Initializing Terraform AWS Provider...
=== RUN   TestAccSimpleDBDomain_basic
=== PAUSE TestAccSimpleDBDomain_basic
=== RUN   TestAccSimpleDBDomain_disappears
=== PAUSE TestAccSimpleDBDomain_disappears
=== RUN   TestAccSimpleDBDomain_MigrateFromPluginSDK
=== PAUSE TestAccSimpleDBDomain_MigrateFromPluginSDK
=== CONT  TestAccSimpleDBDomain_basic
=== CONT  TestAccSimpleDBDomain_MigrateFromPluginSDK
=== CONT  TestAccSimpleDBDomain_disappears
--- PASS: TestAccSimpleDBDomain_disappears (11.22s)
--- PASS: TestAccSimpleDBDomain_basic (12.92s)
--- PASS: TestAccSimpleDBDomain_MigrateFromPluginSDK (27.19s)
PASS
ok  	github.com/hashicorp/terraform-provider-aws/internal/service/simpledb	32.487s

@github-actions github-actions bot added tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. service/simpledb Issues and PRs that pertain to the simpledb service. sweeper Pertains to changes to or issues with the sweeper. client-connections Pertains to the AWS Client and service connections. generators Relates to code generators. labels Oct 21, 2024
Copy link

Community Note

Voting for Prioritization

  • Please vote on this pull request by adding a 👍 reaction to the original post to help the community and maintainers prioritize this pull request.
  • Please see our prioritization guide for information on how we prioritize.
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.

For Submitters

  • Review the contribution guide relating to the type of change you are making to ensure all of the necessary steps have been taken.
  • For new resources and data sources, use skaff to generate scaffolding with comments detailing common expectations.
  • Whether or not the branch has been rebased will not impact prioritization, but doing so is always a welcome surprise.

@github-actions github-actions bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 21, 2024
@ewbankkit ewbankkit marked this pull request as ready for review October 21, 2024 18:01
@ewbankkit ewbankkit requested a review from a team as a code owner October 21, 2024 18:02
@ewbankkit ewbankkit added the linter Pertains to changes to or issues with the various linters. label Oct 22, 2024
Copy link
Member

@jar-b jar-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Nice to have this isolated so cleanly!

% make testacc PKG=simpledb TESTS=TestAccSimpleDBDomain_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/simpledb/... -v -count 1 -parallel 20 -run='TestAccSimpleDBDomain_'  -timeout 360m

--- PASS: TestAccSimpleDBDomain_disappears (12.28s)
--- PASS: TestAccSimpleDBDomain_basic (14.15s)
--- PASS: TestAccSimpleDBDomain_MigrateFromPluginSDK (24.47s)
PASS
ok      github.com/hashicorp/terraform-provider-aws/internal/service/simpledb   29.479s

Copy link
Contributor

@gdavison gdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚀

A couple spots where we can stop explicitly indicating something is SDKv2 related

internal/conns/awsclient_gen.go Outdated Show resolved Hide resolved
internal/generate/servicepackage/endpoint_resolver.go.gtpl Outdated Show resolved Hide resolved
internal/generate/servicepackage/endpoint_resolver.go.gtpl Outdated Show resolved Hide resolved
internal/generate/servicepackage/file.gtpl Outdated Show resolved Hide resolved
@ewbankkit ewbankkit added the aws-sdk-go-migration Issues that are related to the providers migration to AWS SDK for Go v2. label Oct 23, 2024
@ewbankkit ewbankkit merged commit 745c31b into main Oct 23, 2024
41 checks passed
@ewbankkit ewbankkit deleted the td-isolate-aws-sdk-go-references branch October 23, 2024 19:10
@github-actions github-actions bot added this to the v5.73.0 milestone Oct 23, 2024
terraform-aws-provider bot pushed a commit that referenced this pull request Oct 23, 2024
Copy link

This functionality has been released in v5.73.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!

@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws-sdk-go-migration Issues that are related to the providers migration to AWS SDK for Go v2. client-connections Pertains to the AWS Client and service connections. generators Relates to code generators. linter Pertains to changes to or issues with the various linters. service/simpledb Issues and PRs that pertain to the simpledb service. sweeper Pertains to changes to or issues with the sweeper. 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.

3 participants