Using Terraform CLI, how do you apply plan that you previously stored using terraform plan command?
Experience Level: Junior
Tags: Terraform
Answer
To store a plan, run the following command:
terraform plan -out plan.zip
To apply the stored plan, run the following command:
terraform approve plan.zip
Related Terraform job interview questions
The Terraform CLI command terraform destroy is just a convenience alias. For which command?
Terraform JuniorHow do you approve changes presented by terraform apply command of Terraform CLI?
Terraform JuniorUsing Terraform CLI, how do you destroy all infrastructure that is present in your Terraform state?
Terraform JuniorUsing Terraform CLI, you want to apply your configuration changes. How do you approve them automatically so that you don't need to confirm by typing yes?
Terraform JuniorWhat happens on Linux-based operating systems when you run terraform plan command and confirm by typing yes?
Terraform Junior