This message was deleted.
# terraform-provider-rancher2
a
This message was deleted.
q
Thanks, I have a version.tf with
Copy code
terraform {
  required_version = ">= 1.3"
}
which generates tf.lock.hcl :
Copy code
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:
Copy code
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 probably
But I am not understanding how this mapping matrix is working, is there a table for that? in other words, how would I find out the needed
required_version
for specific rancher provider version
s
It's a provider version, not K8s version
q
yes, and both are available: v3.0.0 & v1.24.2
though I am not sure why it was previously following the k8s version for provider and then stopped it after v1.25.0 release (next release versioning is v2.0.0-rc1)
s
It's probably in the docs/release notes
q
Not really, but for anyone who could stumble upon this in the future, you can tune the
required_version
as following:
Copy code
terraform {
  required_version = "<= 1.24.3"
}
and it will install the provider version v1.24.2