Which of the following should you put into the required_providers block?
Which of the following should you put into the required_providers block?
The correct syntax for specifying a version in the required_providers block is to use a string. Therefore, the appropriate format for setting the version constraint 'greater than or equal to 3.1' is 'version = ">= 3.1"'. The other options do not correctly follow the syntax requirements for the version parameter.
B https://developer.hashicorp.com/terraform/language/providers/requirements
B is the only answer with a correct syntax: version parameter wants a string
B since this syntax is correct. If you go back to the previous questions you'll see a screenshot where a relevant question is being asked.
I choose "С"
well B and C are correct. the question isn't clear about required provider... did they mean terraform version or hashicorp provider terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 5.42" } } required_version = ">= 1.2.0" }
B is correct, others have wrong syntax
terraform { required_providers { mycloud = { source = "mycorp/mycloud" version = "~> 1.0" } } }
C is the answer
C is correct
I choose B
A and C - correct (