InterviewSolution
| 1. |
Explain the destroy command in the context of Terraform. |
|
Answer» The terraform destroy command is a simple WAY to eliminate all remote OBJECTS maintained by a Terraform setup. While you should avoid destroying long-lived objects in a production environment, Terraform is occasionally used to MANAGE temporary infrastructure for development, in which case you can use terraform destroy to quickly clean up all of those temporary objects after you're done. Syntax: terraform destroy [options] You may also execute the following command to build a speculative destroy plan to see what the effect of destroying MIGHT be: terraform -destroy plan This will launch Terraform Plan in destroy mode, displaying the PROPOSED destroy changes but not allowing you to execute them. |
|