TA-002-P · Question #52
In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.
The correct answer is A. True. This is true. In Terraform 0.13+, providers are defined in the required_providers block where you map a local name to a source address (e.g., mycloud = { source = "mycorp/mycloud" }). Everywhere else in the configuration - in resource blocks, data sources, and provider…
Question
In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Options
- ATrue
- BFalse
How the community answered
(35 responses)- A94% (33)
- B6% (2)
Explanation
This is true. In Terraform 0.13+, providers are defined in the required_providers block where you map a local name to a source address (e.g., mycloud = { source = "mycorp/mycloud" }). Everywhere else in the configuration - in resource blocks, data sources, and provider configuration blocks - you refer to the provider using that local name only, not the full source address. This local name decouples the configuration from the registry path.
Topics
Community Discussion
No community discussion yet for this question.