Skip to content

Terraform modules

Open source modules for Azure

Terraform modules for Azure environments that have to meet ISO 27001, NIS2 or KRITIS controls. Each one is documented, free and MIT licensed.

New to this stack? Start with the Hub & Spoke foundation. The Firewall and the other modules are built to drop into it.

Azure Terraform ISO 27001

Azure Acmebot - Zero-Trust Edition

Let's Encrypt automation for locked-down Azure environments. Private Link isolation, default-deny network rules, and Managed Identity, built for ISO 27001, NIS2, and KRITIS audits.

Free, MIT
  • Default-deny network architecture (VNet Integration + Private Link)
  • Private DNS Zones linked, so names resolve to the private endpoints
  • Entra ID app registration and Managed Identity set up by Terraform
  • Full source code, no lock-in
Start here Azure Terraform Zero-Trust

Hub & Spoke - Zero-Trust Edition

Zero-Trust NSGs, centralized Private DNS, and a DINE policy bypass so Azure Policy remediation does not show up as Terraform drift.

Free, MIT
  • Zero-Trust NSG baseline bound to all Spoke subnets
  • Centralized Private DNS Zones (Blob, SQL, Key Vault, ACR)
  • DINE policy lifecycle bypass, so policy remediation does not break the next plan
  • Environment-aware naming convention throughout
  • Full source code, no lock-in
Azure Terraform Firewall

Azure Firewall - Forced Tunneling Edition

Forced tunneling without the Terraform cycle error, with KMS and Azure AD bypass routes, dynamic IP Groups, and baseline FQDN policies. Drops into an existing Hub & Spoke without breaking Windows activation or Managed Identities.

Free, MIT
  • Resource ordering that avoids the cycle error on first apply
  • KMS and Azure AD bypass routes keep Windows activation and sign-in working
  • Dynamic for_each subnet binding for any number of spokes
  • IP Group-based firewall policies, no hardcoded IP addresses
  • FQDN baseline rules for Windows Updates and core Microsoft services
Azure Terraform AI

Azure OpenAI RAG - Zero-Trust Networking

Isolated network layer for an Azure OpenAI RAG stack. Private Endpoints for Azure OpenAI and AI Search, automated Private DNS, and Managed Identity RBAC between them instead of shared keys.

Free, MIT
  • Private Endpoints for both services, public network access disabled
  • Identity chaining via Managed Identity and RBAC, no static keys
  • Automated Private DNS Zone linking for both services
  • Network and identity design built for ISO 27001 and NIS2 audits
Azure Terraform Kubernetes

Private AKS - Zero-Trust Edition

No public API server, no public node IPs, no default outbound path. Forced-tunneled egress via Route Table, private-endpoint-only ACR and Key Vault. Built to run behind your Hub & Spoke.

Free, MIT
  • private_cluster_enabled with no public FQDN at all
  • Forced tunneling via userDefinedRouting, no default outbound path
  • Private-endpoint-only ACR (Premium) and Key Vault, kubelet identity RBAC only
  • Zero-Trust node subnet NSG, DINE-policy-safe Private DNS Zones
  • Full source code, no lock-in

License

  • MIT licensed, full Terraform source, no lock-in
  • Use it in your own infrastructure or for client work
  • Questions? david@woitzik.dev
Free download

ISO 27001 Auditor Checklist

The ISO 27001 Annex A controls I check when I harden an Azure deployment for ISO 27001, NIS2, or KRITIS: network isolation, identity, logging, and the rest. One-page PDF, no email required.

Download the checklist (PDF) →

New modules and articles

An email when a new module or article goes out. No spam, unsubscribe anytime.