This Terraform module is designed to help in using the AzureRM terraform provider.
It provides for an Azure region given in standard format, CLI format or slug format (used by Claranet tfwrapper) the Azure standard format, a short format used for resource naming, the CLI format and a slug format.
It also provides the paired region associated to the current one.
Please refer to the regions.tf file for available regions. Complete regions mapping is also available in REGIONS.md documentation.
Module version | Terraform version | OpenTofu version | AzureRM version |
---|---|---|---|
>= 8.x.x | Unverified | 1.8.x | >= 4.0 |
>= 7.x.x | 1.3.x | >= 3.0 | |
>= 6.x.x | 1.x | >= 3.0 | |
>= 5.x.x | 0.15.x | >= 2.0 | |
>= 4.x.x | 0.13.x / 0.14.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 |
If you want to contribute to this repository, feel free to use our pre-commit git hook configuration which will help you automatically update and format some files for you by enforcing our Terraform code module best-practices.
More details are available in the CONTRIBUTING.md file.
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"
}
No providers.
No modules.
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
azure_region | Azure Region standard name, CLI name or slug format | string |
n/a | yes |
Name | Description |
---|---|
data_location | Azure data location corresponding to the current region. |
location | Azure region in standard format |
location_cli | Azure region in Azure CLI name format |
location_short | Azure region in short format for resource naming purpose |
location_slug | Azure region in slug format |
paired_location | Azure paired region with the current one. All formats available as attributes.object({ |
Azure regions: azure.microsoft.com/en-us/global-infrastructure/regions/