https://rancher.com/ logo
Title
b

blue-controller-9088

01/30/2023, 10:41 PM
How to provide LocalClusterAuthEndpoint in terraform resource rancher2_cluster_v2? Tried this one below: ---
local_cluster_auth_endpoint {
ca_certs = fileexists("ssl/ca.pem") ? file("ssl/ca.pem") : ""
enabled = true
fqdn = var.rancher_config.cluster_api_server
}
--- It does not like it, getting “Unsupported block type”. --- Error: Unsupported block type │ │ on main.tf line 99, in resource “rancher2_cluster_v2” “cluster”: │ 99: local_cluster_auth_endpoint { │ │ Blocks of type “local_cluster_auth_endpoint” are not expected here. ---