nerdexam
HashiCorp

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…

Read, generate, and modify configuration

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)
  • A
    94% (33)
  • B
    6% (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

#Terraform Providers#Provider Naming#Configuration Syntax#Terraform 0.13+

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice