InterviewSolution
| 1. |
Explain the command terraform apply in the context of Terraform. |
|
Answer» The terraform apply command is used to carry out the tasks in a Terraform plan. The simplest method to use terraform apply is to run it WITHOUT any arguments, in which case it will construct a new EXECUTION plan (as if you had run terraform plan) and then request you to accept it before doing the activities you specified. Another approach to use terraform apply is to SUPPLY it the filename of a saved plan file generated with terraform plan -out=..., in which case Terraform will apply the modifications to the plan without PROMPTING for CONFIRMATION. This two-step process is most useful when using Terraform in an automated environment. Syntax: terraform apply [options] [plan file] |
|