Using Terraform CLI, how do you get a plan to destroy all objects currently managed by the Terraform configuration?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform plan -destroy
Related Terraform job interview questions
Using Terraform CLI, how do you pass variable value when you execute terraform plan command?
Terraform JuniorUsing Terraform CLI, how do you store a plan to a path so that you would then be able to use it as input to the apply command?
Terraform JuniorUsing Terraform CLI, how do you review what changes will be done to your target infrastructure based on the configuration?
Terraform JuniorUsing Terraform CLI, how do you validate configurration and get any errors in structured JSON format?
Terraform JuniorWill 'terraform validate' raise error when you use both tabs and spaces in Terraform configuration?
Terraform Junior