Hi,
I would like to programmatically determine if I am synthing a Stack for apply, or for deletion.
I have the following workflow:
→ network cfg → vms → k8s cluster forming → flux2 setup …
doing it reverse is not possible at the moment, because deleting flux leaves some resources that won’t let me delete it’s namespace.
I could clean/handle this - or don’t care, because afterwards I would delete the whole cluster
So I would like to not generate the flux2 manifest resources if I am destroying the stack.
Or does terraform has something like “retain” for deletion policys? I didn’t found anything like that (coming from the “real” cdk)