Using 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?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform plan -out=path
Related Terraform job interview questions
Using Terraform CLI, how do you limit planning operation to only resources of a specific module?
Terraform JuniorUsing Terraform CLI, how do you pass variable value when you execute terraform plan command?
Terraform JuniorUsing Terraform CLI, how do you get a plan to destroy all objects currently managed by the Terraform configuration?
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 Junior