-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
44 lines (34 loc) · 1.36 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
module "bootstrap" {
source = "./modules/bootstrap"
}
module "resource_group" {
source = "./modules/resourceGroup"
depends_on = [module.bootstrap]
}
module "log_analytics_workspace" {
source = "./modules/logAnalyticsWorkspace"
location = module.resource_group.location
resource_group_name = module.resource_group.name
depends_on = [module.resource_group]
}
module "application_insights" {
source = "./modules/applicationInsights"
grafana_workspace_id = module.log_analytics_workspace.grafana_id
location = module.resource_group.location
nginx_workspace_id = module.log_analytics_workspace.nginx_id
resource_group_name = module.resource_group.name
depends_on = [module.resource_group, module.log_analytics_workspace]
}
module "container_app" {
source = "./modules/containerApp"
grafana_workspace_id = module.log_analytics_workspace.grafana_id
location = module.resource_group.location
nginx_workspace_id = module.log_analytics_workspace.nginx_id
resource_group_name = module.resource_group.name
depends_on = [module.log_analytics_workspace, module.resource_group]
}
module "frontdoor" {
source = "./modules/frontdoor"
resource_group_name = module.resource_group.name
depends_on = [module.bootstrap, module.resource_group, module.container_app]
}