TERRAFORM-ASSOCIATE-004 · Question #78
When should you run terraform init?
The correct answer is D. After you start coding a new terraform project and before you run terraform plan for the first time.. You should run terraform init after you start coding a new Terraform project and before you run terraform plan for the first time. This command will initialize the working directory by downloading the required providers and modules, creating the initial state file, and performing
Question
Options
- AEvery time you run terraform apply
- BBefore you start coding a new Terraform project
- CAfter you run terraform plan for the time in a new terraform project and before you run terraform
- DAfter you start coding a new terraform project and before you run terraform plan for the first time.
How the community answered
(59 responses)- A2% (1)
- B5% (3)
- C2% (1)
- D92% (54)
Explanation
You should run terraform init after you start coding a new Terraform project and before you run terraform plan for the first time. This command will initialize the working directory by downloading the required providers and modules, creating the initial state file, and performing other necessary
Topics
Community Discussion
No community discussion yet for this question.