https://pulumi.com logo
#general
Title
# general
s

steep-caravan-65104

02/11/2020, 3:40 AM
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

white-balloon-205

02/11/2020, 4:52 AM
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

steep-caravan-65104

02/11/2020, 5:47 AM
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

white-balloon-205

02/11/2020, 5:49 PM
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

steep-caravan-65104

02/20/2020, 11:01 AM
Unfortunately I was not able to reproduce the issue thereafter, will raise it if it happens again
👍 1
65 Views