-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
53 lines (40 loc) · 841 Bytes
/
main.tf
File metadata and controls
53 lines (40 loc) · 841 Bytes
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
module "dns" {
source = "./dns"
location = "westeurope"
names = ["cloud.openastrotech.com"]
}
module "front_door" {
source = "./front-door"
location = "westeurope"
}
moved {
from = module.config_server
to = module.config_server["dev"]
}
module "config_server" {
for_each = tomap({
dev = {
subdomain = "config-dev"
}
prod = {
subdomain = "config"
}
})
source = "./config-server"
stage = each.key
location = "westeurope"
regions = {
"westeurope" = {
geo_mappings = ["WORLD"]
}
"westus" = {
geo_mappings = ["GEO-NA", "GEO-SA"]
}
}
dns_zone = {
name = "cloud.openastrotech.com"
resource_group_name = module.dns.resource_group_name
}
cdn_frontdoor_profile = module.front_door
subdomain = each.value.subdomain
}