Closed
Description
Problem Statement
Actually, @sentry/serverless
package use the aws-sdk
v2. It results on this warnings when testing in local with serverless-offline :
(node:49034) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.
Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
With lambdas using the node18 runtime, the sdk available is the v3, not the v2. To be able to use the sdk in v2, it must be included in the package, which makes the size of each lambdas quite substantial.
Solution Brainstorm
Use the sdk v3. But, with that, we have the problem of compatibility between aws node runtime < node18 using the sdk v2 and aws node runtime >= node18 using the sdk v3
Metadata
Metadata
Assignees
Type
Projects
Status
No status