-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
27 lines (23 loc) · 912 Bytes
/
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
terraform {
required_providers {
kubernetes = {
source = "hashicorp/kubernetes"
}
}
}
provider "kubernetes" {
host = var.host
token = var.token
cluster_ca_certificate = base64decode(var.cluster_ca_certificate)
}
module "environment" {
source = "./modules"
count = length(var.environments)
environment_namespace = var.environments[count.index].environment_namespace
hasura_graphql_dev_mode = var.environments[count.index].hasura_graphql_dev_mode
hasura_graphql_admin_secret = var.environments[count.index].hasura_graphql_admin_secret
hasura_graphql_url = var.environments[count.index].hasura_graphql_url
postgres_db = var.environments[count.index].postgres_db
postgres_password = var.environments[count.index].postgres_password
postgres_user = var.environments[count.index].postgres_user
}