getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Cannot use the "latest" keyword for Sentry Lambda layer in serverless files. #11773

Open codebravotech opened 6 months ago

codebravotech commented 6 months ago

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/node

SDK Version

7.110.0

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Attempt to add "latest" keyword to the Sentry lambda layer arn.

Per the Sentry dev team's request, this is a new/duplicate issue for a previous request that has gone stale: https://github.com/getsentry/sentry-javascript/issues/3834

It would be really helpful to be able to use the "latest" keyword when adding the Sentry lambda layer to serverless framework configuration files, which requires the ListLayerVersion IAM permission.

Expected Result

Sentry can pull the latest version.

Actual Result

Sentry throws an error using that version. Needs the ListLayerVersion IAM permission.

AbhiPrasad commented 6 months ago

We're busy working on our major version https://github.com/getsentry/sentry-javascript/issues/9508 at the moment, so backlogging for now.