Skip to content

Commit 7e70d9c

Browse files
committed
feat: refactor templating into a reusable module
1 parent 01afa72 commit 7e70d9c

25 files changed

+365
-197
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ templates/basic/terraform.tfvars
3737
.alzlib
3838
terraform.tfvars
3939
tfplan
40+
templates/platform_landing_zone/examples/test/*

templates/platform_landing_zone/examples/full-multi-region-nva/hub-and-spoke-vnet.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -100,9 +100,9 @@ custom_replacements = {
100100
secondary_private_dns_resolver_subnet_address_prefix = "10.1.0.160/28"
101101
}
102102

103-
/*
103+
/*
104104
--- Custom Resource Group Identifier Replacements ---
105-
You can define custom resource group identifiers to use throughout the configuration.
105+
You can define custom resource group identifiers to use throughout the configuration.
106106
You can only use the templated variables and custom names in this section.
107107
NOTE: You cannot refer to another custom resource group identifier in this variable.
108108
*/
@@ -111,9 +111,9 @@ custom_replacements = {
111111
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
112112
}
113113

114-
/*
114+
/*
115115
--- Custom Resource Identifier Replacements ---
116-
You can define custom resource identifiers to use throughout the configuration.
116+
You can define custom resource identifiers to use throughout the configuration.
117117
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
118118
NOTE: You cannot refer to another custom resource identifier in this variable.
119119
*/
@@ -138,7 +138,7 @@ tags = {
138138
source = "Azure Landing Zones Accelerator"
139139
}
140140

141-
/*
141+
/*
142142
--- Management Resources ---
143143
You can use this section to customize the management resources that will be deployed.
144144
*/
@@ -165,7 +165,7 @@ management_resource_settings = {
165165
}
166166
}
167167

168-
/*
168+
/*
169169
--- Management Groups and Policy ---
170170
You can use this section to customize the management groups and policies that will be deployed.
171171
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -246,7 +246,7 @@ management_group_settings = {
246246
}
247247
}
248248

249-
/*
249+
/*
250250
--- Connectivity - Hub and Spoke Virtual Network ---
251251
You can use this section to customize the hub virtual networking that will be deployed.
252252
*/

templates/platform_landing_zone/examples/full-multi-region-nva/virtual-wan.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -92,9 +92,9 @@ custom_replacements = {
9292
secondary_private_dns_resolver_subnet_address_prefix = "10.1.4.128/28"
9393
}
9494

95-
/*
95+
/*
9696
--- Custom Resource Group Identifier Replacements ---
97-
You can define custom resource group identifiers to use throughout the configuration.
97+
You can define custom resource group identifiers to use throughout the configuration.
9898
You can only use the templated variables and custom names in this section.
9999
NOTE: You cannot refer to another custom resource group identifier in this variable.
100100
*/
@@ -103,9 +103,9 @@ custom_replacements = {
103103
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
104104
}
105105

106-
/*
106+
/*
107107
--- Custom Resource Identifier Replacements ---
108-
You can define custom resource identifiers to use throughout the configuration.
108+
You can define custom resource identifiers to use throughout the configuration.
109109
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
110110
NOTE: You cannot refer to another custom resource identifier in this variable.
111111
*/
@@ -130,7 +130,7 @@ tags = {
130130
source = "Azure Landing Zones Accelerator"
131131
}
132132

133-
/*
133+
/*
134134
--- Management Resources ---
135135
You can use this section to customize the management resources that will be deployed.
136136
*/
@@ -157,7 +157,7 @@ management_resource_settings = {
157157
}
158158
}
159159

160-
/*
160+
/*
161161
--- Management Groups and Policy ---
162162
You can use this section to customize the management groups and policies that will be deployed.
163163
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -238,7 +238,7 @@ management_group_settings = {
238238
}
239239
}
240240

241-
/*
241+
/*
242242
--- Connectivity - Virtual WAN ---
243243
You can use this section to customize the virtual wan networking that will be deployed.
244244
*/

templates/platform_landing_zone/examples/full-multi-region/hub-and-spoke-vnet.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -102,9 +102,9 @@ custom_replacements = {
102102
secondary_private_dns_resolver_subnet_address_prefix = "10.1.0.160/28"
103103
}
104104

105-
/*
105+
/*
106106
--- Custom Resource Group Identifier Replacements ---
107-
You can define custom resource group identifiers to use throughout the configuration.
107+
You can define custom resource group identifiers to use throughout the configuration.
108108
You can only use the templated variables and custom names in this section.
109109
NOTE: You cannot refer to another custom resource group identifier in this variable.
110110
*/
@@ -113,9 +113,9 @@ custom_replacements = {
113113
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
114114
}
115115

116-
/*
116+
/*
117117
--- Custom Resource Identifier Replacements ---
118-
You can define custom resource identifiers to use throughout the configuration.
118+
You can define custom resource identifiers to use throughout the configuration.
119119
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
120120
NOTE: You cannot refer to another custom resource identifier in this variable.
121121
*/
@@ -140,7 +140,7 @@ tags = {
140140
source = "Azure Landing Zones Accelerator"
141141
}
142142

143-
/*
143+
/*
144144
--- Management Resources ---
145145
You can use this section to customize the management resources that will be deployed.
146146
*/
@@ -167,7 +167,7 @@ management_resource_settings = {
167167
}
168168
}
169169

170-
/*
170+
/*
171171
--- Management Groups and Policy ---
172172
You can use this section to customize the management groups and policies that will be deployed.
173173
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -248,7 +248,7 @@ management_group_settings = {
248248
}
249249
}
250250

251-
/*
251+
/*
252252
--- Connectivity - Hub and Spoke Virtual Network ---
253253
You can use this section to customize the hub virtual networking that will be deployed.
254254
*/

templates/platform_landing_zone/examples/full-multi-region/virtual-wan.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -89,9 +89,9 @@ custom_replacements = {
8989
secondary_private_dns_resolver_subnet_address_prefix = "10.1.4.64/28"
9090
}
9191

92-
/*
92+
/*
9393
--- Custom Resource Group Identifier Replacements ---
94-
You can define custom resource group identifiers to use throughout the configuration.
94+
You can define custom resource group identifiers to use throughout the configuration.
9595
You can only use the templated variables and custom names in this section.
9696
NOTE: You cannot refer to another custom resource group identifier in this variable.
9797
*/
@@ -100,9 +100,9 @@ custom_replacements = {
100100
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
101101
}
102102

103-
/*
103+
/*
104104
--- Custom Resource Identifier Replacements ---
105-
You can define custom resource identifiers to use throughout the configuration.
105+
You can define custom resource identifiers to use throughout the configuration.
106106
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
107107
NOTE: You cannot refer to another custom resource identifier in this variable.
108108
*/
@@ -127,7 +127,7 @@ tags = {
127127
source = "Azure Landing Zones Accelerator"
128128
}
129129

130-
/*
130+
/*
131131
--- Management Resources ---
132132
You can use this section to customize the management resources that will be deployed.
133133
*/
@@ -154,7 +154,7 @@ management_resource_settings = {
154154
}
155155
}
156156

157-
/*
157+
/*
158158
--- Management Groups and Policy ---
159159
You can use this section to customize the management groups and policies that will be deployed.
160160
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -235,7 +235,7 @@ management_group_settings = {
235235
}
236236
}
237237

238-
/*
238+
/*
239239
--- Connectivity - Virtual WAN ---
240240
You can use this section to customize the virtual wan networking that will be deployed.
241241
*/

templates/platform_landing_zone/examples/full-single-region/hub-and-spoke-vnet.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -73,9 +73,9 @@ custom_replacements = {
7373
primary_private_dns_resolver_subnet_address_prefix = "10.0.0.160/28"
7474
}
7575

76-
/*
76+
/*
7777
--- Custom Resource Group Identifier Replacements ---
78-
You can define custom resource group identifiers to use throughout the configuration.
78+
You can define custom resource group identifiers to use throughout the configuration.
7979
You can only use the templated variables and custom names in this section.
8080
NOTE: You cannot refer to another custom resource group identifier in this variable.
8181
*/
@@ -84,9 +84,9 @@ custom_replacements = {
8484
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
8585
}
8686

87-
/*
87+
/*
8888
--- Custom Resource Identifier Replacements ---
89-
You can define custom resource identifiers to use throughout the configuration.
89+
You can define custom resource identifiers to use throughout the configuration.
9090
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
9191
NOTE: You cannot refer to another custom resource identifier in this variable.
9292
*/
@@ -111,7 +111,7 @@ tags = {
111111
source = "Azure Landing Zones Accelerator"
112112
}
113113

114-
/*
114+
/*
115115
--- Management Resources ---
116116
You can use this section to customize the management resources that will be deployed.
117117
*/
@@ -138,7 +138,7 @@ management_resource_settings = {
138138
}
139139
}
140140

141-
/*
141+
/*
142142
--- Management Groups and Policy ---
143143
You can use this section to customize the management groups and policies that will be deployed.
144144
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -219,7 +219,7 @@ management_group_settings = {
219219
}
220220
}
221221

222-
/*
222+
/*
223223
--- Connectivity - Hub and Spoke Virtual Network ---
224224
You can use this section to customize the hub virtual networking that will be deployed.
225225
*/

templates/platform_landing_zone/examples/full-single-region/virtual-wan.tfvars

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
1818
You can define custom replacements to use throughout the configuration.
1919
*/
2020
custom_replacements = {
21-
/*
21+
/*
2222
--- Custom Name Replacements ---
23-
You can define custom names and other strings to use throughout the configuration.
23+
You can define custom names and other strings to use throughout the configuration.
2424
You can only use the built in replacements in this section.
2525
NOTE: You cannot refer to another custom name in this variable.
2626
*/
@@ -67,9 +67,9 @@ custom_replacements = {
6767
primary_private_dns_resolver_subnet_address_prefix = "10.0.4.64/28"
6868
}
6969

70-
/*
70+
/*
7171
--- Custom Resource Group Identifier Replacements ---
72-
You can define custom resource group identifiers to use throughout the configuration.
72+
You can define custom resource group identifiers to use throughout the configuration.
7373
You can only use the templated variables and custom names in this section.
7474
NOTE: You cannot refer to another custom resource group identifier in this variable.
7575
*/
@@ -78,9 +78,9 @@ custom_replacements = {
7878
ddos_protection_plan_resource_group_id = "/subscriptions/$${subscription_id_connectivity}/resourcegroups/$${ddos_resource_group_name}"
7979
}
8080

81-
/*
81+
/*
8282
--- Custom Resource Identifier Replacements ---
83-
You can define custom resource identifiers to use throughout the configuration.
83+
You can define custom resource identifiers to use throughout the configuration.
8484
You can only use the templated variables, custom names and customer resource group identifiers in this variable.
8585
NOTE: You cannot refer to another custom resource identifier in this variable.
8686
*/
@@ -105,7 +105,7 @@ tags = {
105105
source = "Azure Landing Zones Accelerator"
106106
}
107107

108-
/*
108+
/*
109109
--- Management Resources ---
110110
You can use this section to customize the management resources that will be deployed.
111111
*/
@@ -132,7 +132,7 @@ management_resource_settings = {
132132
}
133133
}
134134

135-
/*
135+
/*
136136
--- Management Groups and Policy ---
137137
You can use this section to customize the management groups and policies that will be deployed.
138138
You can further configure management groups and policy by supplying a `lib` folder. This is detailed in the Accelerator documentation.
@@ -213,7 +213,7 @@ management_group_settings = {
213213
}
214214
}
215215

216-
/*
216+
/*
217217
--- Connectivity - Virtual WAN ---
218218
You can use this section to customize the virtual wan networking that will be deployed.
219219
*/

0 commit comments

Comments
 (0)