How to include static files to be read inside the lambda function?

I’m trying to add a schema file to validate a json feed but I can’t make it work.
It seems to not be included in the package.

First I just run sls package and check the zip contents but the file is not present.
I also tried to include the file with:

package:
  include:
    - libs/schemas/schema.json

but still not works.

How can I make sure a static file is included in the package and can be read inside the lambda function?

Thanks!

1 Like