TERRAFORM-ASSOCIATE-004 · Question #131
Which of the following should you put into the required_providers block?
The correct answer is B. version = ">= 3.1". The required_providers block is used to specify the provider versions that the configuration can work with. The version argument accepts a version constraint string, which must be enclosed in double quotes. The version constraint string can use operators such as >=, ~>, =, etc. t
Question
Options
- Aversion >= 3.1
- Bversion = ">= 3.1"
- Cversion ~> 3.1
How the community answered
(28 responses)- A4% (1)
- B96% (27)
Explanation
The required_providers block is used to specify the provider versions that the configuration can work with. The version argument accepts a version constraint string, which must be enclosed in double quotes. The version constraint string can use operators such as >=, ~>, =, etc. to specify the minimum, maximum, or exact version of the provider. For example, version = ">= 3.1" means that the configuration can work with any provider version that is 3.1 or higher.
Topics
Community Discussion
No community discussion yet for this question.