Closed godd9170 closed 7 years ago
Here's the Gameplan.
One master serverless.yml
at the root of the /api
folder. We can pretty much copy the function definitions ymls
from each of the sub dirs and thanks to serverless' new function level package inclusion/exclusions we can just make each function ignore the sub dirs of the other functions.
reasons why this is sick:
Error Response
tools.py
instead of having 3 floating versionsWord of the wise, when you only want to deploy the function you're working on (and it's got it's stack already built)
sls deploy function -f account
it's fast like ⚡ too
As it stands, the API gateway can't point one domain, to multiple AWS apis. Well, it can, but they need to have unique 'base paths' which really sucks.
The only way I can see around this is to re-bucket
/account
,/contact
,/event
and/encryption
all into one/api
service.