sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Provide an AWS lambda layer for v7

Open andreiborza opened this issue 1 year ago • 0 comments

Problem Statement

Currently, we publish our AWS Lambda layer under the name SentryNodeServerlessSDK and each release we bump the version number by one (e.g. for SDK release 8.2.1 the current version number for the layer is 243).

This worked fine for us in the past, but now with v8 out, we do not want to overwrite the current v8 layer with a v7 layer when we do SDK releases for v7.

Solution Brainstorm

We should create a new lambda layer named SentryNodeServerlessSDKV7 and exclusively publish to it when doing v7 releases.

SentryNodeServerlessSDK should always remain the layer name for the latest major version of the SDK, with previous majors getting their own layer names.

### Tasks
- [ ] https://github.com/getsentry/sentry-javascript/pull/12099
- [ ] https://github.com/getsentry/sentry-docs/pull/10071
- [ ] Add option to skip publishing the layer in case of preview versions
- [ ] Update runtime to `node-v7` and evaluate impact on craft and sentry-release-registry; then update docs to use v7 arn dropdown

andreiborza avatar May 17 '24 08:05 andreiborza