I am using a AWS::Serverless::Function resource to deploy my Lambda function.
I added arn:aws:lambda:eu-west-1:072686360478:layer:node-16_0_0:3 as a Layer to my function, and set runtime to provided.
Deployed the stack, but when running the Lambda, I get
Unknown application error occurred
Runtime.ErrorLoadingHandler
My cloudformation config for the Lambda
MyLambdaFunction:
Type: 'AWS::Serverless::Function'Description: create endpointProperties:
Handler: index.mainCodeUri: ../.dist/lambda/Create/lambda.zipRuntime: providedTimeout: 5MemorySize: 768Role: !GetAtt LambdaRole.ArnEnvironment:
Variables:
REGION: !Ref AWS::RegionLayers:
- arn:aws:lambda:eu-west-1:072686360478:layer:node-16_0_0:3
- !RefLayer
I am using a AWS::Serverless::Function resource to deploy my Lambda function.
I added
arn:aws:lambda:eu-west-1:072686360478:layer:node-16_0_0:3as a Layer to my function, and setruntimetoprovided.Deployed the stack, but when running the Lambda, I get
My cloudformation config for the Lambda