Skip to content

Commit

Permalink
fix(aws-lambda): Remove version suffix from lambda layer (#14843)
Browse files Browse the repository at this point in the history
The v8 suffixed layer lands in the release-registry every time we
publish a release from the v8 branch which not only breaks
https://github.com/getsentry/sentry/blob/c11f4c099257b2388d150f71fb39516e3d3f2328/src/sentry/integrations/aws_lambda/utils.py#L236-L253
but also ends up in the docs as the current version: when using the ARN
dropdown
https://docs.sentry.io/platforms/javascript/guides/aws-lambda/install/cjs-layer/.

This removes the suffix so we get the current major published under the
non-suffixed name.

Follow-up task:
#14842
  • Loading branch information
andreiborza authored Dec 27, 2024
1 parent 3693a5d commit b578a71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ targets:
# whenever we release a new v8 version—otherwise we would overwrite the current major lambda layer.
- name: aws-lambda-layer
includeNames: /^sentry-node-serverless-\d+.\d+.\d+(-(beta|alpha|rc)\.\d+)?\.zip$/
layerName: SentryNodeServerlessSDKv8
# TODO(v9): change to `SentryNodeServerlessSDKv8` once v9 is released
layerName: SentryNodeServerlessSDK
compatibleRuntimes:
- name: node
versions:
Expand Down

0 comments on commit b578a71

Please sign in to comment.