This message was deleted.
# general
s
This message was deleted.
d
Interesting question, I have a similar / related one. How do people structure their pulumi code? I am opting for monorepo, at least for broad services, and I am doing /frontend (I'll put react.js here) /functions (I'll put lambdas) /infrastructure (pulumi code) I want to split various bits, such as dynamo, etc The only way I've seen is to do export const but that gets tedious very quickly. How do you do it?
b
we aren't prescriptive here, it largely depends on your needs. Having a mono repo is very common with our users @damp-school-17708 you can use stack references to help organize things as well: https://www.pulumi.com/docs/intro/concepts/stack/#stackreferences But you'll still need to export variables
👍 1
c
This is a based setup, what I used with terraform before starting the current migration to pulumi, and I fully endorse it
1 branch = 1 env
Keep your infrastructure changes, db migrations, and code in the same place. That way you can modify all three at the same time.