Ideally I'm trying to setup my IaC in a monorepo w...
# general
f
Ideally I'm trying to setup my IaC in a monorepo with the following folder structure <account>/<region>/<env>/<resource>
r
What language are you using?
f
golang
That structure is just something I saw that looked the best way for me
But happy to be open to other structures. Just hard to find non trivial examples
r
Yeah, I think whatever structure works for you is what is best. It’s hard to prescribe any sort of “best practices” in terms of folder structure since people can have wildly varying use cases. I don’t have a great example in golang, but the “complex architecture” that I always link to is MIT’s Open Learning infra (in python, but conceptually should be equivalent). https://github.com/mitodl/ol-infrastructure But I still think what works for you is what is “best”.
f
Thanks @red-match-15116 will check it out 🙏 Yeah agreed its nice to be flexible. But it does help people better to have complex normative examples so conceptually people can better grapple projects and stacks. Because they aren't so intutive once you get to something more complex
r
Yeah, I hear you. We do have some guidance on structuring projects/stacks: https://www.pulumi.com/docs/guides/organizing-projects-stacks/ - but we could probably do more to have concrete examples to reflect that page.