Janessa
08/31/2021, 12:32 AMexternalModule
to bundle (example below)? Here are the docs I’m referencing: https://docs.serverless-stack.com/working-locally#using-lambda-layers
new sst.Function(this, "test", {
handler: "src/app/testLambda.lambdaHandler",
bundle: {
nodeModules: ["winston"],
externalModules: ["SentryNodeServerlessSDK"] // also tried "@sentry/serverless"
},
layers: [
lambda.LayerVersion.fromLayerVersionArn(this, "SentryLayer", "arn:aws:lambda:us-west-2:943013980633:layer:SentryNodeServerlessSDK:29")
]
})
Also for more context, I’m trying to add a sentry layer. The docs I’m using are here: https://docs.sentry.io/platforms/node/guides/aws-lambda/layer/
Thanks in advance 😄Frank
Janessa
08/31/2021, 2:45 PMFrank
["@sentry/serverless"]
, but that’s not likely the issue here.Frank
new sst.Function(this, "test", {
handler: "src/app/testLambda.lambdaHandler",
bundle: {
nodeModules: ["winston"],
}
})
Frank
Frank