TERRAFORM-ASSOCIATE-004 · Question #113
A provider configuration block is required in every Terraform configuration. Example:
The correct answer is B. False. A provider configuration block is not required in every Terraform configuration. A provider configuration block can be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured. However…
Question
Options
- ATrue
- BFalse
How the community answered
(44 responses)- A14% (6)
- B86% (38)
Explanation
A provider configuration block is not required in every Terraform configuration. A provider configuration block can be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured. However, some providers may require some configuration arguments (such as endpoint URLs or cloud regions) before they can be used. A provider's documentation should list which configuration arguments it expects. For providers distributed on the Terraform Registry, versioned documentation is available on each provider's page, via the "Documentation" link in the provider's header.
Topics
Community Discussion
No community discussion yet for this question.