https://pulumi.com logo
Title
i

important-flower-8259

08/04/2021, 12:05 AM
Hopefully a quick question: Is there a good way in Pulumi for setting deletion order/dependencies?
In order to delete the public IP, disassociate/detach the Public IP address from the resource.
run into this kind of issue a lot trying to delete/clean things up.
t

tall-librarian-49374

08/04/2021, 6:23 AM
dependsOn
works both for creation and deletion order
i

important-flower-8259

08/04/2021, 4:48 PM
In this case, my k8s service does depend on the public IP, yet still trying to delete the IP first
I think in this case it’s an issue using
deleteBeforeReplace: true
which, I understand it is doing this, but I expect that argument to only affect the specific resource and not disrupt the
dependsOn
flow
(because for a public IP, if it needs to be replaced, can’t create a new public IP with the same name first)