This is more like a convention because of the limitations of the custom backends…
We do use inter stack references across projects. the important part to know is: if you use backends other then pulumi.com , then you should/must include the name of the project in the stack name and use the same backend for all you projects.
e.g. if your project is called
my-project
, then your stacks for that project should be called something like this:
my-project.prod
and get the reference like this:
Copy code
const infra = new pulumi.StackReference(`my-project.prod`);
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.