quiet-author-51481
05/04/2023, 10:05 AMsparse-fireman-14239
05/04/2023, 10:07 AMquiet-author-51481
05/04/2023, 10:12 AMterraform {
required_version = ">= 1.3"
}
which generates tf.lock.hcl :
provider "<http://registry.terraform.io/rancher/rancher2|registry.terraform.io/rancher/rancher2>" {
version = "3.0.0"
constraints = ">= 1.24.1"
and I can see the 3.0.0
version being used from tf logs:
DEBUG] provider.terraform-provider-rancher2_v3.0.0: 2023/05/04 13:00:21 [INFO] Creating Cluster XXX
So, I have to specify the required_version in version.tf a bit differently probablyrequired_version
for specific rancher provider versionsparse-fireman-14239
05/04/2023, 10:16 AMsparse-fireman-14239
05/04/2023, 10:20 AMquiet-author-51481
05/04/2023, 10:36 AMrequired_version
as following:
terraform {
required_version = "<= 1.24.3"
}
and it will install the provider version v1.24.2