-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.tf
34 lines (29 loc) · 801 Bytes
/
locals.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
locals {
project = "myproj"
workspace = {
dev = "dev"
stg = "stg"
pro = "pro"
}
configuration = jsondecode(file("./workspaces/${terraform.workspace}.tfvars.json"))
# https://learn.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations
resource_type = {
resource_group = "rg"
key_vault = "kv"
sql_database_server = "sql"
databricks_workspace = "dbw"
storage_account = "sa"
}
# name: az account list-locations -o table
# geo_code: https://learn.microsoft.com/en-us/azure/backup/scripts/geo-code-list
location = {
west_europe = {
name = "westeurope"
geo_code = "we"
}
north_europe = {
name = "northeurope"
geo_code = "ne"
}
}
}