TERRAFORM-ASSOCIATE-003 · Question #201
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
The correct answer is A. True. The terraform init command is required before using a new backend or integrating with HCP Terraform/Terraform Cloud. terraform init initializes the working directory and sets up the backend, downloading necessary provider plugins and modules. If the backend configuration…
Question
Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.
Options
- ATrue
- BFalse
How the community answered
(24 responses)- A83% (20)
- B17% (4)
Explanation
The terraform init command is required before using a new backend or integrating with HCP Terraform/Terraform Cloud. terraform init initializes the working directory and sets up the backend, downloading necessary provider plugins and modules. If the backend configuration changes, Terraform will require re-initialization to apply those changes. Without running terraform init, Terraform will fail to use a new backend or remote Terraform Cloud workspace.
Topics
Community Discussion
No community discussion yet for this question.