HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #252
Which of the following should you add in the required_providers block to define a provider version constraint?
The correct answer is C. version = ">= 3.1". Version constraints must be specified with = and quotes, e.g.: version = ">= 3.1" This ensures compatibility with Terraform's syntax.
Understand Terraform Basics
Question
Which of the following should you add in the required_providers block to define a provider version constraint?
Options
- Aversion ~> 3.1
- Bversion >= 3.1
- Cversion = ">= 3.1"
How the community answered
(23 responses)- A17% (4)
- B13% (3)
- C70% (16)
Explanation
Version constraints must be specified with = and quotes, e.g.: version = ">= 3.1" This ensures compatibility with Terraform's syntax.
Topics
#required_providers#version constraint syntax#provider configuration#HCL syntax
Community Discussion
No community discussion yet for this question.