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

after completing all work related to the AWS SDK v2 resource migration (#770), we should remove any remaining v1 calls. #804

Merged

Conversation

wakeful
Copy link
Contributor

@wakeful wakeful commented Dec 6, 2024

Description

Fixes #770 - after completing all work related to the AWS SDK v2 resource migration (#770), we should remove any remaining v1 calls.

We are almost done with the v2 migration. This WIP branch uses only AWS SDK v2 for communication with AWS APIs.
This should be the final MR required to completely remove v1 from the codebase.

TODOs

  • merge the v2 versions of EC2 and Redshift
  • clean up the util package
  • remove the usage of the awserr package
  • remove the migration report (v2_migration_report)

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.
  • Attention Grunts - if this PR adds support for a new resource, ensure the nuke_sandbox and nuke_phxdevops jobs in .circleci/config.yml have been updated with appropriate exclusions (either directly in the job or via the .circleci/nuke_config.yml file) to prevent nuking IAM roles, groups, resources, etc that are important for the test accounts.

Release Notes (draft)

Removed AWS SDKv1

Migration Guide

n/a

@wakeful wakeful force-pushed the moving-away-from-aws-sdk-v1 branch from 8c6b447 to 99f9975 Compare December 11, 2024 07:36
@james03160927
Copy link
Contributor

Hi @wakeful, let me know when it's ready for final review. Thanks for all the contribution!

@wakeful wakeful force-pushed the moving-away-from-aws-sdk-v1 branch from 99f9975 to c3270dc Compare December 17, 2024 07:18
@wakeful
Copy link
Contributor Author

wakeful commented Dec 17, 2024

FYI @james03160927

The last thing I want to add is a test for the util/error.go file, just to ensure it works fine after removing the awserr package. It should be ready for review tomorrow.

@sc250024 sc250024 mentioned this pull request Dec 17, 2024
@wakeful wakeful force-pushed the moving-away-from-aws-sdk-v1 branch from 494fddc to a02b833 Compare December 20, 2024 07:46
@wakeful wakeful marked this pull request as ready for review December 20, 2024 07:49
@wakeful
Copy link
Contributor Author

wakeful commented Dec 20, 2024

hey @james03160927

This is now ready for review. I have tried to create logical commits for this change.

james03160927
james03160927 previously approved these changes Dec 21, 2024
Copy link
Contributor

@james03160927 james03160927 left a comment

Choose a reason for hiding this comment

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

Just a few nit comments. Otherwise LGTM. Will trigger tests for this.

aws/resource_registry.go Outdated Show resolved Hide resolved
aws/resources/base_resource.go Outdated Show resolved Hide resolved
aws/resources/base_resource.go Outdated Show resolved Hide resolved
@wakeful wakeful force-pushed the moving-away-from-aws-sdk-v1 branch from c334187 to d7e0c23 Compare December 21, 2024 17:31
@wakeful
Copy link
Contributor Author

wakeful commented Dec 21, 2024

Just a few nit comments. Otherwise LGTM. Will trigger tests for this.

sorted!

@wakeful wakeful changed the title [wip] after completing all work related to the AWS SDK v2 resource migration (#770), we should remove any remaining v1 calls. after completing all work related to the AWS SDK v2 resource migration (#770), we should remove any remaining v1 calls. Dec 21, 2024
Copy link
Contributor

@james03160927 james03160927 left a comment

Choose a reason for hiding this comment

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

LGTM

@james03160927 james03160927 merged commit a37f56c into gruntwork-io:master Dec 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to AWS SDKv2
2 participants