i’m trying to figure out the best pattern for upda...
# general
l
i’m trying to figure out the best pattern for updating a resource after creation, based on the creation of other resources. see the thread for a specific use case.
i need to create a VPC Endpoint with privateDnsEnabled = false, create some resources in Neon, and then set privateDnsEnabled = true.
🤔 1
l
That's an imperative problem, not suited to a declarative solution like Pulumi. If I had this problem, I would define the desired end state in Pulumi and
up
it, then put an
up
freeze in place (so that Pulumi doesn't change anything) and run the imperative steps. Afterwards, run
pulumi refresh
and/or
pulumi up
, as needed.
The imperative steps would be outside Pulumi. Stick to their knitting!