-
Notifications
You must be signed in to change notification settings - Fork 728
refactor(aws-toolkit-vscode): migrate aws-sdk v2 to v3 #8183
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
Conversation
## Problem AWS SDK V2 is at EOL. All client should migrate to V3. ## Solution Migrate CodeCatalyst client to V3. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. All clients should migrate to V3. ## Solution Migrate API Gateway client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. All client should migrate to V3. ## Solution Migrate accessanalyzer client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. All clients should migrate to V3. ## Solution Migrate IoT client to AWS SDK V3. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK v2 is at EOL. All clients should migrate to V3 ## Solution Migrate Lambda client to AWS SDK V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. ## Solution Migrate Schemas client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is EOL. ## Solution Migrate IoT imports to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. ## Solution Migrate Redshift client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: invictus <[email protected]>
## Problem AWS SDK V2 is at EOL. ## Solution Migrate SSM client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL ## Solution Migrate Schemas to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. ## Solution Migrate SecretsManager client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
## Problem AWS SDK V2 is at EOL. ## Solution Migrate ECS client to V3 --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
) ## Problem AWS SDK V2 is at EOL. All client should migrate to V3. ## Solution More work has been done to migrate these clients: - sts - ecr - ec2 - lambda - awserror (does not exist in v2, should be serviceException in v3) --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license. Co-authored-by: Laxman Reddy <[email protected]>
## Problem The `AppBuilder Walkthrough` test was previously skipped because it is flaky and would some friction when merging in PRs to the `feature/v2-to-v3-migration` branch ## Solution Unskip the `AppBuilder Walkthrough` test as we prepare to merge the `feature/v2-to-v3-migration` branch into `main` --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done |
|
✅ I finished the code review, and didn't find any security or code quality issues. |
|
Linux Unit Tests - insiders is known flaky
|
|
The E2E and integration tests seem to be running on this PR because the test files were changed:
Based on the latest commits to master branch: https://github.com/aws/aws-toolkit-vscode/commits/master/, the same E2E and integration tests are also failing. Here are some examples from existing master branch:
|
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.
what's up with the failures?
To my knowledge, the E2E/Integration tests have always failed. They will run after every commit into main. By default, they are not run before a PR is merges, but can be if a user comments Based on the CI on the latest commit to main, all E2E/Integration tests are still failing. Even when browsing through all the commits to main in August for example, all E2E/Integration still failed. At this point, I'm not sure if anyone even checks them or we can reliably trust the results of them without a further deep dive. |
|
In regards to why the E2E/Integration tests are running on this PR, it looks like they are also automatically run if the test files were edited. In this case, I migrated these files:
|
|
/retryBuilds |

Note
There is still a little bit more work needed for fully migrating aws-sdk v2 to v3, specifically all of these clients here from the
generateServiceClient.tsscriptProblem
AWS SDK V2 is at EOL
Solution
Migrate AWS SDK V2 to V3
This work has been done in the
feature/v2-to-v3-migrationfeature branch and thus merging it intomasterHere are the PRs, which this does not include the merges from main and resolving conflicts:
Testing
Manually tested the prerelease builds
Screen.Recording.2025-10-15.at.1.19.16.PM.mov
feature/xbranches will not be squash-merged at release time.