/azure-hub-spoke-terraform

Deployment of Infrastructure as Code with Azure Hub and Spoke model using reusable Terraform Modules. Deploy and Manage using Azure DevOps or Deploy and Destroy

Primary LanguageHCL

Azure Hub and Spoke Network using reusable Terraform modules - Azure365Pro.com

Blog Reference - https://www.azure365pro.com/azure-hub-and-spoke-network-using-reusable-terraform-modules/

Introduction

Deployment for Infrastructure with Hub and Spoke model. Its compliant with Cloud Adoption Framework.

We will be deploying the below resources using Terraform reusable modules.

  1. ✅ Virtual Networks (Hub - 10.50.0.0/16 - Spoke - 10.51.0.0/16)
  2. ✅ VPN Gateway (10.50.1.0/24)  - Not Provisioned by Default
  3. ✅ Azure Firewall (10.50.2.0/24)
  4. ✅ Application Gateway (10.50.3.0/24) - Not Provisioned by Default
  5. ✅ Azure Bastion (10.50.4.0/24)
  6. ✅ Jump Box (Windows 11) (10.50.5.0/24)
  7. ✅ Windows Server 2019 Web Server (10.51.1.0/24)
  8. ✅ Linux RHEL Server (10.51.2.0/24)
  9. ✅ Public IP Addresses
  10. ✅ Recovery Services Vault
  11. ✅ Azure Key Vault - Not Provisioned by Default
  12. ✅ Route Tables
  13. ✅ Azure Firewall Policies

Modules are convenient to place into folders and reuse resource configurations with Terraform for multiple deployments. Also, changing / upgrading specific resource configurations becomes easier

alt text

Getting Started

Terraform latest version is installed Az cli is installed / az login is completed (az login) git is installed to clone repo (git clone)

terraform init

alt text

terraform plan

alt text

terraform apply

alt text