Running `pulumi down` on a stack with a VPC and a ...
# aws
m
Running
pulumi down
on a stack with a VPC and a ipam pool sets the cidr in a failed-provision state and locks the entire thing. I cannot remove it because Pulumi deleted the VPC but the CIDR refuses to deprovision because of this.
g
For cases like this you should leverage the dependsOn resourceOption to control deletion more closely.
m
Oh, good point. I just assumed it knew the order of everything as that was my experience from pulumi+azure. Thanks 👍
I guess the problem is that the IPAMpool depends on the VPC to be deleted first, but the VPC has a dependency on IPAMpool when being creatged