Skip to content

Commit 8ec3dc1

Browse files
expand azure region abbreviations (#10)
* expand azure region abbreviations * sweden: sw -> se
1 parent ea966e0 commit 8ec3dc1

File tree

3 files changed

+57
-16
lines changed

3 files changed

+57
-16
lines changed

examples/complete/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ No providers.
1515

1616
| Name | Source | Version |
1717
|------|--------|---------|
18-
| <a name="module_resource_names"></a> [resource\_names](#module\_resource\_names) | terraform.registry.launch.nttdata.com/module_library/resource_name/launch | ~> 1.0 |
18+
| <a name="module_resource_names"></a> [resource\_names](#module\_resource\_names) | ../.. | n/a |
1919

2020
## Resources
2121

examples/complete/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// limitations under the License.
2525

2626
module "resource_names" {
27-
source = "../.."
27+
source = "../.."
2828

2929
for_each = var.resource_names_map
3030

main.tf

+55-14
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,61 @@ locals {
2626
instance_env = format("%03d", var.instance_env)
2727

2828
azure_region_abbr_map = {
29-
eastus = "eus"
30-
westus = "wus"
31-
eastus2 = "eus2"
32-
westus2 = "wus2"
33-
centralus = "cus"
34-
northcentralus = "ncus"
35-
southcentralus = "scus"
36-
westcentralus = "wcus"
37-
usgovvirginia = "govva"
38-
usgovtexas = "govtx"
39-
usgovarizona = "govaz"
40-
usgoviowa = "goviowa"
41-
usdodcentral = "dodc"
42-
usdodeast = "dode"
29+
australiaeast = "aue"
30+
australiacentral = "auc"
31+
australiacentral2 = "auc2"
32+
australiasoutheast = "ause"
33+
brazilsouth = "brs"
34+
brazilsoutheast = "brse"
35+
canadacentral = "cac"
36+
canadaeast = "cae"
37+
centralindia = "cin"
38+
centralus = "cus"
39+
eastasia = "eas"
40+
eastus = "eus"
41+
eastus2 = "eus2"
42+
francecentral = "frc"
43+
francesouth = "frs"
44+
germanynorth = "den"
45+
germanywestcentral = "dewc"
46+
israelcentral = "ilc"
47+
italynorth = "itn"
48+
japaneast = "jpe"
49+
japanwest = "jpw"
50+
koreaeast = "kre"
51+
koreasouth = "krs"
52+
mexicocentral = "mxc"
53+
newzealandnorth = "nzn"
54+
northcentralus = "ncus"
55+
northeurope = "neu"
56+
norwayeast = "noe"
57+
norwaywest = "now"
58+
polandcentral = "plc"
59+
qatarcentral = "qac"
60+
southafricanorth = "zan"
61+
southafricawest = "zaw"
62+
southcentralus = "scus"
63+
southeastasia = "sea"
64+
spaincentral = "esc"
65+
swedencentral = "sec"
66+
switzerlandnorth = "chn"
67+
switzerlandwest = "chw"
68+
uaecentral = "aec"
69+
uaenorth = "aen"
70+
uksouth = "uks"
71+
ukwest = "ukw"
72+
usdodcentral = "dodc"
73+
usdodeast = "dode"
74+
usgovarizona = "govaz"
75+
usgovtexas = "govtx"
76+
usgovvirginia = "govva"
77+
usgoviowa = "goviowa"
78+
westcentralus = "wcus"
79+
westeurope = "weu"
80+
westindia = "win"
81+
westus = "wus"
82+
westus2 = "wus2"
83+
westus3 = "wus3"
4384
}
4485

4586
variable_list = [

0 commit comments

Comments
 (0)