-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.tf
95 lines (80 loc) · 2.04 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "4.28.0"
}
}
required_version = ">= 0.13"
}
resource "google_project_service" "cloudresourcemanager_service" {
project = var.project_id
service = "cloudresourcemanager.googleapis.com"
timeouts {
create = "30m"
update = "40m"
}
}
resource "google_project_service" "monitoring_service" {
project = var.project_id
service = "monitoring.googleapis.com"
timeouts {
create = "30m"
update = "40m"
}
}
resource "google_project_service" "serviceusage_service" {
project = var.project_id
service = "serviceusage.googleapis.com"
timeouts {
create = "30m"
update = "40m"
}
}
resource "google_project_service" "iam_service" {
project = var.project_id
service = "iam.googleapis.com"
timeouts {
create = "30m"
update = "40m"
}
}
resource "google_project_service" "compute_service" {
project = var.project_id
service = "compute.googleapis.com"
timeouts {
create = "30m"
update = "40m"
}
}
resource "google_project_service" "iap_service" {
project = var.project_id
service = "iap.googleapis.com"
}
module "network" {
source = "./network"
project_id = var.project_id
region = var.region
vpc_name = var.vpc_name
domain_name = var.domain_name
support_email = var.support_email
airbyte_instance_group = module.instances.airbyte-instance-group
airbyte_instance = module.instances.airbyte-instance
airbyte_health_check = module.healthChecks.airbyte-health-check
metabase_instance_group = module.instances.metabase-instance-group
metabase_instance = module.instances.metabase-instance
metabase_health_check = module.healthChecks.metabase-health-check
}
module "instances" {
source = "./instances"
project_id = var.project_id
region = var.region
zone = var.zone
vpc_name = var.vpc_name
network_id = module.network.network_id
}
module "healthChecks" {
source = "./healthChecks"
project_id = var.project_id
region = var.region
}