-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
47 lines (32 loc) · 974 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
28
29
30
31
32
33
34
35
36
module "grafana" {
source = "./infra/grafana"
environment = var.environment
elastic_ver = var.elastic_ver
index_name = var.index_name
grafana_version = var.grafana_version
}
module "s3" {
source = "./infra/s3"
}
module "youtube-backend" {
source = "./infra/youtube-backend"
registry_url = var.registry_url
cluster_name = var.cluster_name
backend_name = var.backend_name
namespace = var.namespace
}
module "youtube-frontend" {
source = "./infra/youtube-frontend"
registry_url = var.registry_url
cluster_name = var.cluster_name
frontend_name = var.frontend_name
namespace = var.namespace
depends_on = [module.s3]
}
module "route53" {
source = "./infra/route53"
frontend_name = var.frontend_name
load_balancer_hostname = module.youtube-frontend.hostname
region_zone_id = var.region_zone_id
hosted_zone_name = var.hosted_zone_name
}