Skip to content

Commit 1eb8564

Browse files
committed
wip
1 parent 6c95cf0 commit 1eb8564

2 files changed

Lines changed: 66 additions & 0 deletions

File tree

infrastructure/environments/nonlive-hub/variables.tfvars

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,53 @@ postgres_backup_retention_days = 7
1010
postgres_geo_redundant_backup_enabled = false
1111
protect_keyvault = false
1212
vnet_address_space = "10.65.0.0/16"
13+
14+
15+
regions = {
16+
uksouth = {
17+
address_space = "10.65.0.0/16"
18+
is_primary_region = true
19+
subnets = {
20+
acr = {
21+
cidr_newbits = 11
22+
cidr_offset = 8
23+
}
24+
api-mgmt = {
25+
cidr_newbits = 8
26+
cidr_offset = 6
27+
}
28+
app-gateway = {
29+
cidr_newbits = 8
30+
cidr_offset = 5
31+
}
32+
pep = {
33+
cidr_newbits = 8
34+
cidr_offset = 2
35+
}
36+
virtual-desktop = {
37+
cidr_newbits = 11
38+
cidr_offset = 32
39+
}
40+
devops = {
41+
cidr_newbits = 8
42+
cidr_offset = 9
43+
delegation_name = "Microsoft.DevOpsInfrastructure/pools" # az provider register --namespace 'Microsoft.DevOpsInfrastructure'
44+
service_delegation_name = "Microsoft.DevOpsInfrastructure/pools"
45+
service_delegation_actions = ["Microsoft.Network/virtualNetworks/subnets/join/action"]
46+
}
47+
dns-resolver-in = {
48+
cidr_newbits = 12
49+
cidr_offset = 112
50+
delegation_name = "Microsoft.Network/dnsResolvers"
51+
service_delegation_name = "Microsoft.Network/dnsResolvers"
52+
service_delegation_actions = ["Microsoft.Network/virtualNetworks/subnets/join/action"]
53+
}
54+
firewall = {
55+
name = "AzureFirewallSubnet"
56+
cidr_newbits = 10
57+
cidr_offset = 192
58+
create_nsg = false
59+
}
60+
}
61+
}
62+
}

infrastructure/terraform/hub/variables.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ variable "apim_config" {
4949
})
5050
}
5151

52+
variable "regions" {
53+
type = map(object({
54+
address_space = string
55+
is_primary_region = bool
56+
subnets = map(object({
57+
cidr_newbits = string
58+
cidr_offset = string
59+
create_nsg = optional(bool) # defaults to true
60+
name = optional(string) # Optional name override
61+
delegation_name = optional(string)
62+
service_delegation_name = optional(string)
63+
service_delegation_actions = optional(list(string))
64+
}))
65+
}))
66+
}
67+
5268
variable "application" {
5369
description = "Project/Application code for deployment"
5470
type = string

0 commit comments

Comments
 (0)