-
Notifications
You must be signed in to change notification settings - Fork 0
/
providers.tf
37 lines (31 loc) · 1.24 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
provider "azurerm" {
features {
key_vault {
purge_soft_delete_on_destroy = false
}
}
skip_provider_registration = "true"
subscription_id = var.subscription_id
client_id = var.sp_id
client_secret = var.sp_secret
tenant_id = var.sp_tenant_id
}
provider "helm" {
registry {
url = "oci://mappia.azurecr.io"
password = var.helm_pwd
username = var.helm_user
}
kubernetes {
host = azurerm_kubernetes_cluster.mappia_aks.kube_config.0.host
client_certificate = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.cluster_ca_certificate)
}
}
provider "kubernetes" {
host = azurerm_kubernetes_cluster.mappia_aks.kube_config.0.host
client_certificate = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.mappia_aks.kube_config.0.cluster_ca_certificate)
}