Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using with Cloudformation #11

Open
paul-uz opened this issue Apr 21, 2022 · 0 comments
Open

Error when using with Cloudformation #11

paul-uz opened this issue Apr 21, 2022 · 0 comments

Comments

@paul-uz
Copy link

paul-uz commented Apr 21, 2022

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 endpoint
    Properties:
      Handler: index.main
      CodeUri: ../.dist/lambda/Create/lambda.zip
      Runtime: provided
      Timeout: 5
      MemorySize: 768
      Role: !GetAtt LambdaRole.Arn
      Environment:
        Variables:
          REGION: !Ref AWS::Region
      Layers:
        - arn:aws:lambda:eu-west-1:072686360478:layer:node-16_0_0:3
        - !Ref Layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant