Which flag would be used within a Terraform configuration block to identify the specific version of a provider required?
For production use, you should constrain the acceptable provider versions via configuration file to ensure that new versions with breaking changes will not be automatically installed by terraform init in the future. When terraform init is run without provider version constraints, it prints a suggested version constraint string for each provider
For example:
terraform {
required_providers {
aws = '>= 2.7.0'
}
}
Currently there are no comments in this discussion, be the first to comment!