-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
49 lines (45 loc) · 1.12 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
38
39
40
41
42
43
44
45
46
47
48
49
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.24.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "5.24.0"
}
helm = {
source = "hashicorp/helm"
version = "2.13.0"
}
kubectl = {
source = "alekc/kubectl"
version = "2.0.4"
}
}
}
provider "google" {
project = var.project_id
region = var.region
}
provider "google-beta" {
project = var.project_id
region = var.region
}
provider "helm" {
kubernetes {
host = "https://${data.google_container_cluster.cluster.endpoint}"
token = data.google_client_config.provider.access_token
cluster_ca_certificate = base64decode(
data.google_container_cluster.cluster.master_auth[0].cluster_ca_certificate
)
}
}
provider "kubectl" {
load_config_file = false
host = "https://${data.google_container_cluster.cluster.endpoint}"
token = data.google_client_config.provider.access_token
cluster_ca_certificate = base64decode(
data.google_container_cluster.cluster.master_auth[0].cluster_ca_certificate
)
}