Is there some known issue with deletion of objects...
# general
s
Is there some known issue with deletion of objects from Pulumi stacks not working when we perform a partial update with
pulumi up --target=xxx
? In one of our stacks, I always get an error similar to
Target 'urn:pulumi:<pulumi-stack-name>::<pulumi-project-name>::gcp:dns/recordSet:RecordSet::cname-dev' could not be found in the stack. Did you forget to escape $ in your shell?
I have been careful to ensure that there's no
$
in the URN name as the error message seems to suggest. The reason I need to perform such partial updates is that one of the objects in this Pulumi stack is a GCP VPC private subnet, whose metadata gets updated on a vanilla
pulumi up
, but then Pulumi can't update this subnet URN since it's already being used by a GKE cluster.
w
On the second point - does
ignoreChanges
help? On the first - does it sound like the same thing discussed in https://github.com/pulumi/pulumi/issues/3878?
s
On the second point - does
ignoreChanges
help?
Thanks! Yes, that definitely unblocks us as we can run
pulumi up
successfully now.
On the first - does it sound like the same thing discussed in https://github.com/pulumi/pulumi/issues/3878?
Not exactly, I see this error even without the
--target-dependents
option.
w
Okay - on the —target issue: 1. If you
Pulumi stack export
do you see the urn you are trying to specify? 2. Would you mind opening an issue to track this?
s
Unfortunately I was not able to reproduce the issue thereafter, will raise it if it happens again
👍 1