this is similar to issue How to destroy one specific resource with TF file? · Issue #12917 · hashicorp/terraform · GitHub
is there an option to destroy a resource by giving it some attribute in the tf file? for example, I have a security group and I want to delete it and after some days I may want the security group back at that time I just want to toggle the attribute. essentially the attribute should indicate if the resource is required or should be deleted.
we already have terraform destroy and terraform state rm but neither of them are git commitable.