serverless-domain-manager
serverless-domain-manager copied to clipboard
Same Domain on Multiple Serverless Services/Projects
Support Question
Question Hello, I was looking for some information on Google and as I didn't find it, I came here to ask for support.
Let's say I have multiple functions with different goals in AWS:
- A serverless application takes care of pet registration
- Another application manages the sending of e-mails to the owner of the pets
- Another application manages the time control of services provided
For that, I create 3 different serverless applications (in 3 different folders with a different YML in each)
How could I make them all have the same domain?
Let's suppose:
myexample.com/api/pets/{...}
myexample.com/api/email/{...}
myexample.com/api/services/{...}
Hi @fcrdossantos
Thank you for your question!
Could you please take a look at preserveExternalPathMappings option which was added in the version 5.6.0?
Basically, you need to setup Domain Manager config in each YML file with autoDomain and preserveExternalPathMappings options.
Please let us know if it works for you. Hope it will work )
Hi @fcrdossantos
Hope you have solved this issue.
There is no response for long time so closing the issue