:wave: Looking for advices on how to best organize...
# general
r
👋 Looking for advices on how to best organize Pulumi projects. Out of all projects we have, one is
compute
and one is
observability
. Conceptually,
compute
is a dependency of
observability
. However, as part of
observability
, we build services that requires resources in the
compute
project, which take dependency on
observability
. So this results in a circular dependency. How do you handle this as your projects grow? Any best practices that you can share? Thank you 🙇 !
h
There are different views but this has a gr8 explanation of how to organize. It's a bit dated but I think answers your question. https://www.pulumi.com/blog/iac-recommended-practices-structuring-pulumi-projects/
f
we were just chatting about this in a separate thread! 😄 check it out: https://pulumi-community.slack.com/archives/CDE799L1M/p1721747071958529
apologies; that thread was moreso around resources in a single project and you're asking about project -> project. agreed, the zephyr blog series is a good read. Stack references can be circular but require a bit of additional care to get right. One solution is to have a 3rd project referenced by both.
r
Thanks both!