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

13 lines
339 B
Terraform
Raw Normal View History

2024-09-01 13:19:36 +02:00
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)
}