forked from fab-infra/fabinfra-tf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
49 lines (44 loc) · 1.38 KB
/
main.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
// OVH provider
provider "ovh" {
endpoint = var.ovh_endpoint
application_key = var.ovh_application_key
application_secret = var.ovh_application_secret
consumer_key = var.ovh_consumer_key
}
// Google Cloud provider
provider "google" {
credentials = var.gcp_credentials
project = var.gcp_project_id
region = var.gcp_region
}
// Grafana provider
provider "grafana" {
url = var.grafana_url
auth = var.grafana_auth
sm_url = var.grafana_sm_url
sm_access_token = var.grafana_sm_access_token
}
// Kubernetes provider
provider "kubernetes" {
host = var.k8s_host
client_certificate = base64decode(var.k8s_client_cert)
client_key = base64decode(var.k8s_client_key)
cluster_ca_certificate = base64decode(var.k8s_ca_cert)
}
// Helm provider
provider "helm" {
kubernetes {
host = var.k8s_host
client_certificate = base64decode(var.k8s_client_cert)
client_key = base64decode(var.k8s_client_key)
cluster_ca_certificate = base64decode(var.k8s_ca_cert)
}
}
// Google billing email notification channel
resource "google_monitoring_notification_channel" "billing_notification_channel_email" {
display_name = "Billing notification channel (email)"
type = "email"
labels = {
email_address = var.gcp_billing_notification_email
}
}