tf-gke-test/private-cluster-module/providers.tf

13 lines
339 B
HCL

data "google_client_config" "default" {}
provider "google" {
project = var.project
region = var.region
}
provider "kubernetes" {
host = "https://${module.gke.endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(module.gke.ca_certificate)
}