-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathr-naming.tf
89 lines (81 loc) · 3.58 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
data "azurecaf_name" "appgw" {
name = var.stack
resource_type = "azurerm_application_gateway"
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 ? "" : "appgw"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "subnet_appgw" {
name = var.stack
resource_type = "azurerm_subnet"
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 ? "" : "subnet"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "nsg_appgw" {
name = var.stack
resource_type = "azurerm_network_security_group"
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 ? "" : "nsg"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "pip_appgw" {
name = var.stack
resource_type = "azurerm_public_ip"
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 ? "" : "pubip"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "nsr_https" {
name = var.stack
resource_type = "azurerm_network_security_group_rule"
prefixes = var.name_prefix == "" ? null : [local.name_prefix]
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, "https", var.use_caf_naming ? "" : "nsr"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "nsr_healthcheck" {
name = var.stack
resource_type = "azurerm_network_security_group_rule"
prefixes = var.name_prefix == "" ? null : [local.name_prefix]
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, "appgw-healthcheck", var.use_caf_naming ? "" : "nsr"])
use_slug = var.use_caf_naming
clean_input = true
separator = "-"
}
data "azurecaf_name" "frontipconfig" {
name = var.stack
resource_type = "azurerm_public_ip"
prefixes = compact([var.use_caf_naming ? "frontipconfig" : "", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "frontipconfig"])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "frontipconfig_priv" {
name = var.stack
resource_type = "azurerm_public_ip"
prefixes = compact([var.use_caf_naming ? "frontipconfig-priv" : "", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "frontipconfig-priv"])
use_slug = false
clean_input = true
separator = "-"
}
data "azurecaf_name" "gwipconfig" {
name = var.stack
resource_type = "azurerm_public_ip"
prefixes = compact([var.use_caf_naming ? "gwipconfig" : "", local.name_prefix])
suffixes = compact([var.client_name, var.location_short, var.environment, local.name_suffix, var.use_caf_naming ? "" : "gwipconfig"])
use_slug = false
clean_input = true
separator = "-"
}