I was wondering if it was possible to split a serverless.yml file into multiple files.
In particular, I have a fairly large lamba function api gateway. My “events” node is growing very hard and becoming difficult to manage.
I CANT divide the function, for me it is !important that it is only one api service.
Its possible to divide the “events” node of the serverless yml into several files, perhaps for each resource of my api service for example:
users-events.serverless.yml;
posts-events.serverless.yml;
and so on?
It’s something I’ve tried with no success. Unfortunately I do not understand, and the doc does not clarify, how to possibly structure the file in the variable.