TERRAFORM-ASSOCIATE-004 · Question #85
You add a new provider to your configuration and immediately run terraform apply in the CD using the local backend. Why does the apply fail?
The correct answer is C. Terraform needs to install the necessary plugins first. The reason why the apply fails after adding a new provider to the configuration and immediately running terraform apply in the CD using the local backend is because Terraform needs to install the necessary plugins first. Terraform providers are plugins that Terraform uses to inte
Question
Options
- AThe Terraform CD needs you to log into Terraform Cloud first
- BTerraform requires you to manually run terraform plan first
- CTerraform needs to install the necessary plugins first
- DTerraform needs you to format your code according to best practices first
How the community answered
(34 responses)- A9% (3)
- B3% (1)
- C85% (29)
- D3% (1)
Explanation
The reason why the apply fails after adding a new provider to the configuration and immediately running terraform apply in the CD using the local backend is because Terraform needs to install the necessary plugins first. Terraform providers are plugins that Terraform uses to interact with various cloud services and other APIs. Each provider has a source address that determines where to download it from. When Terraform encounters a new provider in the configuration, it needs to run terraform init first to install the provider plugins in a local directory. Without the plugins, Terraform cannot communicate with the provider and perform the desired actions.
Topics
Community Discussion
No community discussion yet for this question.