-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
83 lines (76 loc) · 2.63 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
module "network" {
source = "./modules/Network"
rg = var.rg
tags = var.tags
location = var.location
env = var.env
prefix = var.prefix
}
/* module "database" {
source = "./modules/Database"
rg = var.rg
location = var.location
tags = var.tags
prefix = var.prefix
env = var.env
} */
module "function_app" {
source = "./modules/FunctionApp"
tags = var.tags
rg = var.rg
location = var.location
private_storage_name = module.storage.private_storage_name
private_storage_key = module.storage.private_storage_key
private_storage_account_id = module.storage.private_storage_account_id
public_storage_account_id = module.storage.public_storage_account_id
env = var.env
prefix = var.prefix
instru_key = module.monitoring.instrumentation_key
conn_string = module.monitoring.conn_string
func_subnet_id = module.network.function_subnet_id
}
/* module "eventgrid" {
source = "./modules/Eventgrid"
tags = var.tags
rg = var.rg
prefix = var.prefix
location = var.location
public_storage_account_id = module.storage.public_storage_account_id
private_storage_account_id = module.storage.private_storage_account_id
env = var.env
name = var.prefix
function_app_id = module.function_app.function_app_id
eventgrid_function_app = module.function_app.eventgrid_function_app.name
} */
module "storage" {
source = "./modules/Storage"
tags = var.tags
rg = var.rg
prefix = var.prefix
location = var.location
env = var.env
fe_subnet_id = module.network.frontend_subnet_id
be_subnet_id = module.network.backend_subnet_id
comp_subnet_id = module.network.compute_subnet_id
func_subnet_id = module.network.function_subnet_id
#private_dns_zone_blob_id = module.network.private_dns_zone_blob_id
}
module "container" {
source = "./modules/Container"
tags = var.tags
rg = var.rg
location = var.location
prefix = var.prefix
env = var.env
fe_subnet_id = module.network.frontend_subnet_id
be_subnet_id = module.network.backend_subnet_id
comp_subnet_id = module.network.compute_subnet_id
}
module "monitoring" {
source = "./modules/Monitoring"
location = var.location
rg = var.rg
tags = var.tags
env = var.env
prefix = var.prefix
}