As far as I know Pulumi just parses the main definition of your package.json (given you use js/ts).
I achieved this with a monorepo setup where each responsibility is a separate project in the same got repo.
In theory you could have a config var and your entrypoint file "routes" the deployment depending on this var. But I felt this approach very error prone.
m
mammoth-caravan-51104
03/11/2020, 9:46 AM
thanks, monorepo sounds good, it's def. cleaner in a long run, when you start to create bunch of stacks