pants
pants copied to clipboard
`experimental-destroy` for Terraform
Is your feature request related to a problem? Please describe.
It would be helpful if there was an experimental-destroy target to go along with experimental-deploy for the Terraform backend.
Describe the solution you'd like A clear and concise description of what you want to happen.
pants experimental-destroy would run terraform destroy
I think this fits in with the idea that there are so many other parts of managing a deployment than really fit with pants's verbs. For example, with Terraform I frequently use import. I was thinking of 2 options (we could do both):
- making
terraform_deploymentsa runnable target that fills in some of the other arguments. sopants run infra/deploy -- destroy - making
terraform_deploymentsexportable, so the providers would be written out and the backend initialised. I think this one is a bit fiddly, because you'd have to include the values in each invocation.