-
Notifications
You must be signed in to change notification settings - Fork 23
Home
Welcome to the Azure landing zones Terraform accelerator!
The Azure landing zones Terraform module provides an opinionated approach for deploying and managing the core platform capabilities of Azure landing zones architecture using Terraform, with a focus on the central resource hierarchy:
This accelerator provides an opinionated approach for configuring and securing that module in a continuous delivery pipeline. It has end to end automation for bootstrapping the module and it also provides guidance on branching strategies.
The accelerator supports both Azure DevOps and GitHub as a VCS. We are only able to support the hosted versions of these services as we use the Terraform providers to configure the environment, which do not support self-hosted versions of these services.
If you are using self-hosted versions of these services, you can still use the accelerator to produce the landing zone code by using the -c "local"
flag option, but you will need to configure the VCS manually or with your own automation.
The accelerator bootstraps a continuous delivery environment for you. It supports both the Azure DevOps and GitHub version control system (VCS). It uses the PowerShell module ALZ to gather required user input and apply a Terraform module to configure the bootstrap environment.
The accelerator follows a 3 phase approach:
- Pre-requisites: Instructions to configure credentials and subscriptions.
- Bootstrap: Run the PowerShell script to generate the continuous delivery environment.
- Run: Update the module (if needed) to suit the needs of your organisation and deploy via continuous delivery.
The components of the environment are similar, but differ depending on your choice of VCS:
-
Azure:
- Resource Group for State
- Storage Account and Container for State
- Resource Group for Identity
- User Assigned Managed Identities (UAMI) with Federated Credentials for Plan and Apply
- Permissions for the UAMI on state storage container, subscriptions and management groups
- [Optional] Container Instances hosting GitHub Runners
- [Optional] Virtual network, subnets, private DNS zone and private endpoint.
-
GitHub
- Repository for the Module
- Repository for the Action Templates
- Starter Terraform module with tfvars
- Branch policy
- Action for Continuous Integration
- Action for Continuous Delivery
- Environment for Plan
- Environment for Apply
- Action Variables for Backend and Plan / Apply
- Team and Members for Apply Approval
- Customised OIDC Token Subject for governed Actions
- [Optional] Runner Group
-
Azure:
- Resource Group for State
- Storage Account and Container for State
- Resource Group for Identity
- User Assigned Managed Identities (UAMI) with Federated Credentials for Plan and Apply
- Permissions for the UAMI on state storage container, subscriptions and management groups
- [Optional] Container Instances hosting Azure DevOps Agents
- [Optional] Virtual network, subnets, private DNS zone and private endpoint.
-
Azure DevOps
- Project (can be supplied or created)
- Repository for the Module
- Repository for the Pipeline Templates
- Starter Terraform module with tfvars
- Branch policy
- Pipeline for Continuous Integration
- Pipeline for Continuous Delivery
- Environment for Plan
- Environment for Apply
- Variable Group for Backend
- Service Connections with Workload identity federation for Plan and Apply
- Service Connection Approvals, Template Validation and Concurrency Control
- Group and Members for Apply Approval
- [Optional] Agent Pool
This outputs the ALZ module files to the file system, so you can apply them manually or with your own VCS / automation.
-
Azure:
- Resource Group for State
- Storage Account and Container for State
- Resource Group for Identity
- User Assigned Managed Identities (UAMI) for Plan and Apply
- Permissions for the UAMI on state storage container, subscriptions and management groups
-
Local File System
- Starter Terraform module with tfvars
Check out the User Guide.
The following diagram and links detail the Azure landing zone, but you can learn a lot more about the Azure landing zones enterprise scale module here.
This wiki is being actively developed
If you discover any documentation bugs or would like to request new content, please raise them as an issue or feel free to contribute to the wiki via a pull request. The wiki docs are located in the repository in the docs/wiki/
folder.