henhal / serverless-plugin-layer-manager

Plugin for the Serverless framework that offers improved AWS Lambda layer management
MIT License
12 stars 8 forks source link

Layer Service: No file matches include / exclude patterns #5892 #6

Open ezequiel454 opened 4 years ago

ezequiel454 commented 4 years ago

Hi Hanhal i saw that you already have this issue on https://github.com/serverless/serverless/issues/5892

You manage to solve this with your plugin ? i am using this plugins:

package: individually: true exclude:

layers: myLayer: package: include:

but nothing work..

Jeff-Tian commented 3 years ago

I am using this plugin too, and fixed the same issue by the following configuration. The working repo is here: https://github.com/Jeff-Tian/serverless-space.

serverless.yml:

package:
  patterns:
    - '!node_modules/**'
    - '!layers/**'

You need to use patterns instead of include or exclude.

You can smoke the the working repo by

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/users/create

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/api

curl https://jqp5j170i6.execute-api.us-east-1.amazonaws.com/dev/nest/cats