-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
34 lines (29 loc) · 964 Bytes
/
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
terraform {
backend "remote" {
organization = "davilag-cloud-infra"
workspaces {
name = "gcp-cloud-infra"
}
}
}
provider "google" {
credentials = file(var.credentials)
project = var.project_id
region = var.region
}
provider "google-beta" {
credentials = file(var.credentials)
project = var.project_id
region = var.region
}
data "google_client_config" "current" {}
provider "helm" {
kubernetes {
load_config_file = false
host = google_container_cluster.primary.endpoint
token = data.google_client_config.current.access_token
client_certificate = base64decode(google_container_cluster.primary.master_auth.0.client_certificate)
client_key = base64decode(google_container_cluster.primary.master_auth.0.client_key)
cluster_ca_certificate = base64decode(google_container_cluster.primary.master_auth.0.cluster_ca_certificate)
}
}