I have a need to include a config.json file as part of my serverless packages, my lambda function relies on it to load up some configuration. From reading documentation I understand that I can use the ‘include’ attribute in ‘package’ definition. But when I create a package using $>sis package --package my-package.zip, it does not include the .json file.
My runtime environment is node.js and I am using serverless-webpack plugin.
Here is the snippet from serverless.yml
- include src/config.json
I have tried to do this both at service level and function level, but with not luck.
What am I doing wrong? Thanks for your help in advance.