-
Notifications
You must be signed in to change notification settings - Fork 42
/
r-naming.tf
39 lines (36 loc) · 1.53 KB
/
r-naming.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
35
36
37
38
39
data "azurecaf_name" "aks" {
name = var.stack
resource_type = "azurerm_kubernetes_cluster"
prefixes = var.name_prefix == "" ? null : [local.name_prefix]
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "aks"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "aks_identity" {
name = var.stack
resource_type = "azurerm_user_assigned_identity"
prefixes = compact(["aks", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "identity"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "appgw_identity" {
name = var.stack
resource_type = "azurerm_user_assigned_identity"
prefixes = compact(["appgw", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "identity"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "appgw" {
name = var.stack
resource_type = "azurerm_application_gateway"
prefixes = compact(["aks", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "appgw"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}