Maarten Ureel
Maarten Ureel

Reputation: 475

How to implement shared resources in Pulumi

I'm trying to understand how to implement Pulumi in our AWS environment.

I understand that a stack can be used to have the same resource structure for production and development, but that results in independant instances, which is great.

However we also have a shared management VPC where certain tools reside such as pgadmin, gitlab, monitoring tools,...

So what would be the best approach for that?

Or am I missing the approach of stacks here?

Upvotes: 7

Views: 2704

Answers (1)

Mitch G
Mitch G

Reputation: 206

Your first thought is the right way to go. Deploy shared resources in their own stack(s) and use Stack References to share information across stacks.

These links discuss these concepts: https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/ https://www.pulumi.com/docs/intro/concepts/programming-model/#stack-references

Upvotes: 6

Related Questions