Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support -destroy option for terraform apply >= Terraform CLI 0.15 #293

Open
rstandt opened this issue Apr 15, 2022 · 0 comments
Open

Support -destroy option for terraform apply >= Terraform CLI 0.15 #293

rstandt opened this issue Apr 15, 2022 · 0 comments

Comments

@rstandt
Copy link
Contributor

rstandt commented Apr 15, 2022

Post Terraform CLI 0.15, terraform apply -destroy can be used in place of terraform destroy. This issue proposes allowing the DestroyFlagOption to be passed to (tf *Terraform) Apply to replicate this direct terraform CLI usage behavior.

Proposal

Implement the ApplyOption interface for the DestroyFlagOption
Add the -destroy flag to the (tf *Terraform) Apply unit test
Add an e2e test which replicates TestDestroy using the new functionality

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant