Build5Nines/terraform-azure-region-map

An opinionated region and abbreviation helper for enterprise multi-region Terraform deployments.

Problem it solves: Multi-region Terraform gets messy fast — primary/secondary regions, short codes, paired regions, allowed regions, data-residency zones, and naming abbreviations. This module wraps all of that into a single, enterprise-focused interface so you can stop hand-coding region lookups and focus on infrastructure.

Features

  • Automatic paired-region resolution — Looks up Azure’s designated regional pair for any primary region.
  • Flexible secondary region strategy — Use the Azure pair or specify a custom secondary region.
  • Built-in abbreviations — Short codes for 60+ Azure regions (e.g. eastus → eus), with override support.
  • Display name resolution — Maps canonical names to human-readable display names (e.g. eastus → East US).
  • Policy compliance gating — Define an allow-list of approved regions and check deployments against it.
  • Geography & compliance zone metadata — Know each region’s geography (e.g. United StatesEurope) and compliance zone (AmericasEMEAAsia Pacific).
  • Cross-geography / cross-zone flags — Instantly determine if your primary and secondary regions span geographies or compliance zones for DR and data-residency decisions.
  • Input normalization — Accepts both canonical names (eastus) and display names (East US).
  • No providers required — Pure Terraform logic with local JSON data; no API calls, no credentials needed.

Articles