-
Notifications
You must be signed in to change notification settings - Fork 0
/
providers.tf
37 lines (32 loc) · 1.09 KB
/
providers.tf
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
36
37
terraform {
backend "gcs" {
bucket = "terraform_state_bucket"
prefix = "terraform"
credentials = "credentials.json"
}
}
provider "google" {
project = var.google_project
region = var.google_region
zone = var.google_zone
credentials = "credentials.json"
}
provider "google-beta" {
project = var.google_project
region = var.google_region
zone = var.google_zone
credentials = "credentials.json"
}
provider "kubernetes" {
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
host = "https://${google_container_cluster.primary.endpoint}"
token = data.google_client_config.current.access_token
}
provider "helm" {
kubernetes {
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth[0].cluster_ca_certificate)
host = "https://${google_container_cluster.primary.endpoint}"
token = data.google_client_config.current.access_token
}
}
data "google_client_config" "current" {}