File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,3 +10,53 @@ postgres_backup_retention_days = 7
1010postgres_geo_redundant_backup_enabled = false
1111protect_keyvault = false
1212vnet_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+ }
Original file line number Diff line number Diff 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+
5268variable "application" {
5369 description = " Project/Application code for deployment"
5470 type = string
You can’t perform that action at this time.
0 commit comments