I've been trying to use `deletedWith` on my kube h...
# aws
l
I've been trying to use
deletedWith
on my kube helm charts to skip deleting them when the EKS cluster (built with
@pulumi/eks
) is being destroyed as well. It doesn't seem to work though and pulumi still attempts to destroy the billion CRDs instead of just nuking the cluster - is it because
@pulumi/eks/cluster
is a ComponentResource? I'm not able to reference the underlying aws resource directly because it's exposed as an Output
This might have been because I hadn't explicitly done a deployment since adding the
deletedWith
statements. Will find out if that's the case this evening when I tear down the cluster again
q
This should work if you run a
pulumi up
after you added the resource option. Otherwise the
deletedWith
isn't taken into account.
l
Ah cool, thank you for confirming
q
Let me know if it doesn't work!