Serverless deploying multiple functions
I understand your frustration. I had the same feeling until I looked deeper into the new version and formed a better understanding. One thing to note though, is the new version is not completely finished yet. So if something is completely missing, you can file an issue and have it prioritized before 1.0 is out.
You are supposed to define multiple functions under the same service under the functions:
section of serverless.yml
. To package these functions individually (exclude code for other functions) you will have to set individually: true
under package:
section. You can then use include and exclude options at the root level and at the function level as well. There's an upcoming change that will let you use glob syntax in your include and exclude options (example **/*-fn.js). You can find more about packaging here https://serverless.com/framework/docs/guide/packaging/.
Not sure how to use different roles for different functions under the same service.. How did you do it with 0.5?