This message was deleted.
# general
s
This message was deleted.
l
Yes, if you just remove the code, then Pulumi will tear things down. If you want to leave them up and comment out the code (or hide it behind a feature flag), then you will need to remove the resources from state, using
pulumi state delete <urn>
.
f
Oh wow
l
A common pattern here is to have different projects for the rarely-changed resources and the frequently-changes resources.
f
Could those reference each other?
How about stacks?
l
Absolutely.
f
The issue is… I still need references. I just don’t want pulumi to alter something.
l
They can reference each other whether they are projects or stacks.
From your description, I think most people would use projects: a shared longlived resources project (network + DB), and a per-app or per-env project (EKS etc.)
And you might have multiple stacks for each project, maybe based on region or purpose (dev, staging, prod etc.)
f
The issue is I want to have everything contained within one “thing”, for export purposes.
I think, a feature I’d like is the ability to mark stuff as “frozen”“. That way VPC, RDS, Security Groups and other stuff could just be defined as they are, and even be accessible, but frozen so no changes occur.
Yeah already have stacks for environments, even have dynamically created stacks for Pull Requests. It’s expensive, but worth it.
l
The two projects can be beside each other on the file system, and in the same repo, for packaging purposes
f
I meant on the Pulumi UI.
But yeah, that’s actually good advice.
Thank you!
👍 1