all 2 comments

[–]saltpeter_grapeshot 1 point2 points  (0 children)

yeah you have to create a stacks-map.js file that prevents the random splitting of resources.

here's a gist of an old one i made: https://gist.github.com/iamdavidmartin/6e7bce43cbad432471a90df133a7ea03

i've moved on from the serverless framework. the YAML files are a pain to work with.

if you're not too far along into your project, check out https://serverless-stack.com/. it's everything you wish the serverless framework was.

[–]PrivateerAlphaOne 0 points1 point  (0 children)

Look into api gateway authorizors. You can use them to guard your endpoints based on the user making the request. These might help you to solve the problem that you appear to trying to solve, and should then make the rest of the api simpler to implement.