This terraform module is designed to help in using the AzureRM terraform provider.
It converts the Azure region given in slug format (used by Claranet tfwrapper) to the Azure standard format and a short format used for resource naming.
Please refer to the regions.tf file for available regions. Complete regions mapping is also available in REGIONS.md documentation.
Module version | Terraform version | AzureRM version |
---|---|---|
>= 4.x.x | 0.13.x | >= 2.0 |
>= 3.x.x | 0.12.x | >= 2.0 |
>= 2.x.x | 0.12.x | < 2.0 |
< 2.x.x | 0.11.x | < 2.0 |
This module is optimized to work with the Claranet terraform-wrapper tool
which set some terraform variables in the environment needed by this module.
More details about variables set by the terraform-wrapper
available in the documentation.
module "azure-region" {
source = "claranet/regions/azurerm"
version = "x.x.x"
azure_region = "eu-west"
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
azure_region | Azure Region in slug format | string |
n/a | yes |
Name | Description |
---|---|
location | Converted Azure region in standard format |
location_short | Converted Azure region in short format for resource naming purpose |
Azure regions: azure.microsoft.com/en-us/global-infrastructure/regions/