aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Publish every release as a Lambda layer

Open moltar opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

The problem we are encountering:

  • Large bundle sizes (See: #3023, #2056)
  • Duplicate dependencies (esbuild issue https://github.com/evanw/esbuild/issues/475 )

Which leads to:

  • Slow builds
  • Slow deployments
  • Slow cold starts

Describe the solution you'd like

Publish every release as a predictable Lambda layer.

This would allow us to exclude @aws-sdk/* packages from the bundle, yet target specific and exact package versions via the layer.

A great example of this use case is done by Sentry. They package their Lambda handler as a layer, in every region, and tagged with a version. Then they make the manifest published.

Describe alternatives you've considered

  1. Further optimizing the use of @aws-sdk/client-* packages.
  2. Switching back to v2
  3. Not using SDKs at all

Additional context

🌱 We can help save the planet and make the solution greener by reducing the need to bundle and ship useless bits across the continents.

moltar avatar Nov 16 '21 05:11 moltar

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar Oct 14 '23 00:10 github-actions[bot]

Not stale.

GitHub stale bot considered harmful

moltar avatar Oct 14 '23 12:10 moltar