-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
79 lines (58 loc) · 1.98 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# OpenMetadata deployment
module "deployment" {
source = "./modules/openmetadata-deployment"
namespace = local.omd.namespace
helm_chart_version = local.omd.helm_chart_version
helm_values = local.omd_template_vars
}
# OpenMetadata dependencies
module "openmetadata_deps" {
source = "./modules/openmetadata-dependencies"
namespace = local.omd.namespace
helm_chart_version = local.omd.helm_chart_version
helm_values = local.omd_dependencies_template_vars
}
# OpenMetadata RDS instance (optional)
module "db" {
source = "./modules/rds"
for_each = toset(local.db_provisioner == "aws" ? ["this"] : [])
namespace = var.app_namespace
kms_key_id = var.kms_key_id
eks_nodes_sg_ids = var.eks_nodes_sg_ids
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
db_config = local.db
}
# Airflow RDS instance (optional)
module "airflow_db" {
source = "./modules/rds"
for_each = toset(local.airflow_db_provisioner == "aws" ? ["this"] : [])
namespace = var.app_namespace
kms_key_id = var.kms_key_id
eks_nodes_sg_ids = var.eks_nodes_sg_ids
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
db_config = local.airflow_db
}
# Airflow EFS volumes (optional)
module "airflow_efs" {
source = "./modules/airflow-efs"
for_each = toset(local.airflow_provisioner == "helm" ? ["this"] : [])
airflow = local.airflow
enable_helpers = true
eks_nodes_sg_ids = var.eks_nodes_sg_ids
namespace = var.app_namespace
subnet_ids = var.subnet_ids
vpc_id = var.vpc_id
}
# OpenSearch domain (optional)
module "opensearch" {
source = "./modules/opensearch"
for_each = toset(local.opensearch_provisioner == "aws" ? ["this"] : [])
namespace = var.app_namespace
kms_key_id = var.kms_key_id
eks_nodes_sg_ids = var.eks_nodes_sg_ids
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
opensearch = local.opensearch
}