Skip to content

Node AWS Lambda Layer from is Incorrect #14837

@iamrajjoshi

Description

@iamrajjoshi

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/aws-serverless

SDK Version

latest

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

We recently received that our AWS Lambda integration isn't setting the Node environment variable correctly. Internal Ticket

My investigation led me to a check we do for the lambda layer version here:

https://github.com/getsentry/sentry/blob/39c845f6f48a1a05053b64e535baaae49da81cc8/src/sentry/integrations/aws_lambda/utils.py#L236-L253

I followed that to the sentry-release-registry repo.

There was an automated commit that updated the lambda layer version from 296 to 1.

There was a fix introduced here, but there are other commits after which revert the version to a bad state. (commit history)

I was able to verify the problem by setting up the integration myself.

Steps to Reproduce

  1. Install the AWS Lambda integration and go through the setup flow. docs
  2. Enable Sentry for a lambda function you create
  3. The layer version is "6" instead of "296"+
    Image

Expected Result

The layer version should be the latest, > 296

Actual Result

The layer version is 6 at the moment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions