I need to create two resources A and B. B depends on A for a key it provides when A is created. Creating it all is fine, no issues whatsoever.
Now, when I say terraform destroy -target B, I want A to get destroyed as well automatically. I.e. I do not want to say destroy -target A B. (I don’t want to remember their relationship.)
Is there a way to do that?