Skip to content

Conversation

@ctlai95
Copy link
Contributor

@ctlai95 ctlai95 commented Sep 15, 2025

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.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@amazon-inspector-ohio
Copy link

⏳ I'm reviewing this pull request for security vulnerabilities and code quality issues. I'll provide an update when I'm done

@amazon-inspector-ohio
Copy link

✅ I finished the code review, and didn't find any security or code quality issues.

@ctlai95 ctlai95 changed the base branch from master to feature/v2-to-v3-migration September 15, 2025 17:26
@ctlai95 ctlai95 marked this pull request as ready for review September 15, 2025 21:02
@ctlai95 ctlai95 requested a review from a team as a code owner September 15, 2025 21:02
@ctlai95
Copy link
Contributor Author

ctlai95 commented Sep 16, 2025

/retryBuild

@ctlai95
Copy link
Contributor Author

ctlai95 commented Sep 18, 2025

/retryBuilds

@ctlai95
Copy link
Contributor Author

ctlai95 commented Sep 19, 2025

/retryBuilds

@ctlai95 ctlai95 merged commit 665d5a8 into aws:feature/v2-to-v3-migration Sep 19, 2025
21 of 22 checks passed
@ctlai95 ctlai95 deleted the migrate-lambda branch September 19, 2025 17:29
Copy link
Contributor

@valerena valerena left a comment

Choose a reason for hiding this comment

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

The vast majority of changes are just Type changes, so this would be a good place to look at if you ever want to start using import type for Types, because you could add that to all these Runtimes and others that are imported only for typing.

But overall it looks good, I just added a question on why we had to add as Runtime only some times. Thanks!

Comment on lines +97 to +98
[RuntimeFamily.NodeJS, 'nodejs22.x' as Runtime],
[RuntimeFamily.Python, 'python3.13' as Runtime],
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason why only some of these are marked with as Runtime?

chungjac added a commit that referenced this pull request Oct 21, 2025
## Note
**There is still a little bit more work needed for fully migrating
aws-sdk v2 to v3, specifically all of these clients
[here](https://github.com/aws/aws-toolkit-vscode/blob/59fd17fcfa22798e78d0df196290edb4a070f7ec/packages/core/scripts/build/generateServiceClient.ts#L232-L251)
from the `generateServiceClient.ts` script**


## Problem
AWS SDK V2 is at EOL

## Solution
Migrate AWS SDK V2 to V3

This work has been done in the `feature/v2-to-v3-migration` feature
branch and thus merging it into `master`

Here are the PRs, which this does not include the merges from main and
resolving conflicts:
- #8043
- #8042
- #8046
- #8054
- #8041
- #8056
- #8081
- #8069
- #8067
- #8093
- #8095
- #8094
- #8171
- #8159
- #8175
- #8182



## Testing
Manually tested the [prerelease
builds](https://github.com/aws/aws-toolkit-vscode/releases/tag/pre-v2-to-v3-migration)


https://github.com/user-attachments/assets/b1d4795c-4027-462e-a195-509ac4a9d8ae


---

- 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: aws-toolkit-automation <[email protected]>
Co-authored-by: Tai Lai <[email protected]>
Co-authored-by: invictus <[email protected]>
Co-authored-by: Laxman Reddy <[email protected]>
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.

4 participants