Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor templating into a reusable module #218

Merged
merged 3 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ templates/basic/terraform.tfvars
.alzlib
terraform.tfvars
tfplan
templates/platform_landing_zone/examples/test/*
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ This repository provides the starter modules for the Azure Landing Zones IaC Ter

Please head over to [aka.ms/alz/acc](https://aka.ms/alz/acc) for detailed features and usage instructions.

## Issues

Please raise an issue over here: [https://aka.ms/alz/acc/issues](https://aka.ms/alz/acc/issues)

## Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Expand Down
4 changes: 3 additions & 1 deletion SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Support

## How to file issues and get help
## How to file issues and get help

Please raise an issue over here: [https://aka.ms/alz/acc/issues](https://aka.ms/alz/acc/issues)

This project uses GitHub Issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
You can define custom replacements to use throughout the configuration.
*/
custom_replacements = {
/*
/*
--- Custom Name Replacements ---
You can define custom names and other strings to use throughout the configuration.
You can define custom names and other strings to use throughout the configuration.
You can only use the built in replacements in this section.
NOTE: You cannot refer to another custom name in this variable.
*/
Expand Down Expand Up @@ -100,9 +100,9 @@ custom_replacements = {
secondary_private_dns_resolver_subnet_address_prefix = "10.1.0.160/28"
}

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

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

/*
/*
--- Management Resources ---
You can use this section to customize the management resources that will be deployed.
*/
Expand All @@ -165,7 +165,7 @@ management_resource_settings = {
}
}

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

/*
/*
--- Connectivity - Hub and Spoke Virtual Network ---
You can use this section to customize the hub virtual networking that will be deployed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
You can define custom replacements to use throughout the configuration.
*/
custom_replacements = {
/*
/*
--- Custom Name Replacements ---
You can define custom names and other strings to use throughout the configuration.
You can define custom names and other strings to use throughout the configuration.
You can only use the built in replacements in this section.
NOTE: You cannot refer to another custom name in this variable.
*/
Expand Down Expand Up @@ -92,9 +92,9 @@ custom_replacements = {
secondary_private_dns_resolver_subnet_address_prefix = "10.1.4.128/28"
}

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

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

/*
/*
--- Management Resources ---
You can use this section to customize the management resources that will be deployed.
*/
Expand All @@ -157,7 +157,7 @@ management_resource_settings = {
}
}

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

/*
/*
--- Connectivity - Virtual WAN ---
You can use this section to customize the virtual wan networking that will be deployed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
You can define custom replacements to use throughout the configuration.
*/
custom_replacements = {
/*
/*
--- Custom Name Replacements ---
You can define custom names and other strings to use throughout the configuration.
You can define custom names and other strings to use throughout the configuration.
You can only use the built in replacements in this section.
NOTE: You cannot refer to another custom name in this variable.
*/
Expand Down Expand Up @@ -102,9 +102,9 @@ custom_replacements = {
secondary_private_dns_resolver_subnet_address_prefix = "10.1.0.160/28"
}

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

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

/*
/*
--- Management Resources ---
You can use this section to customize the management resources that will be deployed.
*/
Expand All @@ -167,7 +167,7 @@ management_resource_settings = {
}
}

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

/*
/*
--- Connectivity - Hub and Spoke Virtual Network ---
You can use this section to customize the hub virtual networking that will be deployed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
You can define custom replacements to use throughout the configuration.
*/
custom_replacements = {
/*
/*
--- Custom Name Replacements ---
You can define custom names and other strings to use throughout the configuration.
You can define custom names and other strings to use throughout the configuration.
You can only use the built in replacements in this section.
NOTE: You cannot refer to another custom name in this variable.
*/
Expand Down Expand Up @@ -89,9 +89,9 @@ custom_replacements = {
secondary_private_dns_resolver_subnet_address_prefix = "10.1.4.64/28"
}

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

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

/*
/*
--- Management Resources ---
You can use this section to customize the management resources that will be deployed.
*/
Expand All @@ -154,7 +154,7 @@ management_resource_settings = {
}
}

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

/*
/*
--- Connectivity - Virtual WAN ---
You can use this section to customize the virtual wan networking that will be deployed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Replacements are denoted by the dollar-dollar curly braces token (e.g. $${starte
You can define custom replacements to use throughout the configuration.
*/
custom_replacements = {
/*
/*
--- Custom Name Replacements ---
You can define custom names and other strings to use throughout the configuration.
You can define custom names and other strings to use throughout the configuration.
You can only use the built in replacements in this section.
NOTE: You cannot refer to another custom name in this variable.
*/
Expand Down Expand Up @@ -73,9 +73,9 @@ custom_replacements = {
primary_private_dns_resolver_subnet_address_prefix = "10.0.0.160/28"
}

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

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

/*
/*
--- Management Resources ---
You can use this section to customize the management resources that will be deployed.
*/
Expand All @@ -138,7 +138,7 @@ management_resource_settings = {
}
}

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

/*
/*
--- Connectivity - Hub and Spoke Virtual Network ---
You can use this section to customize the hub virtual networking that will be deployed.
*/
Expand Down
Loading
Loading