TA-002-P · Question #367
terraform init retrieves the source code tot all referenced modules
The correct answer is A. True. terraform init initializes the working directory and performs several setup tasks: it installs provider plugins, downloads and installs remote module source code into the .terraform/modules directory, and configures the backend. So yes, it retrieves the source code for all…
Question
terraform init retrieves the source code tot all referenced modules
Options
- ATrue
- BFalse
How the community answered
(37 responses)- A86% (32)
- B14% (5)
Explanation
terraform init initializes the working directory and performs several setup tasks: it installs provider plugins, downloads and installs remote module source code into the .terraform/modules directory, and configures the backend. So yes, it retrieves the source code for all referenced modules (both local paths are validated and remote sources like the Terraform Registry or Git are downloaded). Answer A (True) is correct.
Topics
Community Discussion
No community discussion yet for this question.