Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Getting MODULE_NOT_FOUND when using on function with Layer #102

Open
ea-tal opened this issue Sep 26, 2020 · 0 comments
Open

Getting MODULE_NOT_FOUND when using on function with Layer #102

ea-tal opened this issue Sep 26, 2020 · 0 comments

Comments

@ea-tal
Copy link

ea-tal commented Sep 26, 2020

I am trying to use this plugin with a configuration that ran Instana ( a monitoring system)
their deployment uses layer an should be implemented like this:

functions:
    index:
        handler: 'instana-aws-lambda-auto-wrap.handler'
        environment:
            LAMBDA_HANDLER: 'dist/index.handler'
        events:
            - http:
                  method: get
                  path: /hi
        layers:
            - arn:aws:lambda:us-east-1:410797082306:layer:instana-nodejs:30

When I deploy the configuration, It tries to optimize "instana-aws-lambda-auto-wrap.handler" and I get MODULE_NOT_FOUND

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant