As immutable infrastructure I’m deleting my resources terraform resources using terraform destroy before creating new ones using apply.
However if I pass a variable like true or false. can the terraform script stop at destroy and exit else it should continue with apply? Any example would be much appreciated.