-
Notifications
You must be signed in to change notification settings - Fork 0
/
spaces.tf
42 lines (36 loc) · 947 Bytes
/
spaces.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
locals {
spaces = [
{
github_handle = "this-agio"
dns_prefix = "this-agio"
}, {
github_handle = "inge4pres"
dns_prefix = "inge4pres"
},
]
reserved_spaces = toset([
"your-domain",
"tommaso",
])
}
module "space" {
for_each = { for idx, space in local.spaces : space.dns_prefix => space.github_handle }
source = "./modules/software-engineer-space"
github_handle = each.value
domain_prefix = each.key
cloudflare_zone_id = cloudflare_zone.software-engineer-space.id
providers = {
cloudflare = cloudflare
github = github
}
}
module "reserved_space" {
for_each = local.reserved_spaces
source = "./modules/software-engineer-space"
domain_prefix = each.value
cloudflare_zone_id = cloudflare_zone.software-engineer-space.id
providers = {
cloudflare = cloudflare
github = github
}
}