This message was deleted.
# general
s
This message was deleted.
s
Can you over-ride the setting on the parent resources? (or explicitly define parent/child?)
d
What do you mean over-ride the setting ?
It's a Subnet that needs to be replaced for a VPC and it can't do that if there are VMs associated with it still running -- the VMs parent is already the Subnet Pulumi object -- there's no setting to change here.
s
Separate to any definable or ‘soft’ pulumi relationships or dependencies, you just cannot delete a subnet before you delete everything within it. If you’re OK with doing that… and all the resources are managed by your stack, if they are all set to be children of the parent, and the parent is deleted… it should delete everything.
e
Can you raise issue on our github about this. It might be there's a way to work around this already, but you might need a new setting to override the delete when a dependee resource is deleted logic in replace.
d
I can workaround it by manually calling
destroy
on the resources easily enough.
It looks really similar to this issue: https://github.com/pulumi/pulumi/issues/11273
I also added a comment with the details of my stack: https://github.com/pulumi/pulumi/issues/11273#issuecomment-1433290490
👍 1
(the workaround is just
pulumi destroy --target '**:prod-mgmt-subnet' --target '**:prod-tunnel-subnet' --target-dependents
, doing it as a delete does things in the right order)