forked from MaterializeInc/terraform-google-materialize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproviders.tf
More file actions
35 lines (31 loc) · 929 Bytes
/
Copy pathproviders.tf
File metadata and controls
35 lines (31 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
terraform {
required_version = ">= 1.0"
required_providers {
google = {
source = "hashicorp/google"
version = ">= 6.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "~> 2.0"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.0"
}
}
}
# Configure kubernetes provider with GKE cluster credentials
data "google_client_config" "default" {}
provider "kubernetes" {
host = "https://${module.gke.cluster_endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(module.gke.cluster_ca_certificate)
}
provider "helm" {
kubernetes {
host = "https://${module.gke.cluster_endpoint}"
token = data.google_client_config.default.access_token
cluster_ca_certificate = base64decode(module.gke.cluster_ca_certificate)
}
}