AWS Lambda Layer (Node)

You can also install Sentry using a Lambda Layer instead of adding @sentry/serverless with npm or yarn. Import Sentry as usual:

const Sentry = require("@sentry/serverless");

Then add the Sentry Layer by navigating to your Lambda function. Select Layers, then Add a Layer.

lambda view

Specify an ARN tab as illustrated:

add layer

Finally, set the region and copy the provided ARN value into the input.

Select Region
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").