forked from observeinc/terraform-azure-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
152 lines (138 loc) · 3.91 KB
/
variables.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
variable "observe_customer" {
type = string
description = "Observe customer id"
}
variable "observe_token" {
type = string
description = "Observe ingest token"
}
variable "observe_domain" {
type = string
description = "Observe domain"
default = "observeinc.com"
}
# Based on NCRONTAB Expressions
# https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-csharp#ncrontab-expressions
variable "timer_resources_func_schedule" {
type = string
description = "Eventhub name to use for resources function"
default = "0 */10 * * * *"
}
variable "timer_vm_metrics_func_schedule" {
type = string
description = "Eventhub name to use for vm metrics function"
default = "30 */5 * * * *"
}
variable "func_url" {
type = string
description = "Observe Collect Function source URL zip"
default = "https://observeinc.s3.us-west-2.amazonaws.com/azure/azure-collection-functions-0.11.4.zip"
}
# Use Name for value
# https://azuretracks.com/2021/04/current-azure-region-names-reference/
variable "location" {
type = string
description = "Azure Location to deploy resources"
default = "eastus"
}
variable "location_abbreviation" {
type = map(string)
description = "A unique, short abbreviation to use for each location when assiging names to resources"
default = {
"australiacentral" : "ac",
"australiacentral2" : "ac2",
"australiaeast" : "ae",
"asiapacific" : "ap",
"australia" : "as",
"australiasoutheast" : "ase",
"brazil" : "b",
"brazilsouth" : "bs",
"brazilsoutheast" : "bse",
"canada" : "c",
"canadacentral" : "cc",
"canadaeast" : "ce",
"centralindia" : "ci",
"centralus" : "cu",
"centraluseuap" : "cue",
"centralusstage" : "cus",
"europe" : "e",
"eastasia" : "ea",
"eastasiastage" : "eas",
"eastus" : "eu",
"eastus2" : "eu2",
"eastus2euap" : "eu2e",
"eastus2stage" : "eu2s",
"eastusstage" : "eus",
"eastusstg" : "eustg",
"france" : "f",
"francecentral" : "fc",
"francesouth" : "fs",
"germany" : "g",
"global" : "glob",
"germanynorth" : "gn",
"germanywestcentral" : "gwc",
"india" : "i",
"japan" : "j",
"japaneast" : "je",
"jioindiacentral" : "jic",
"jioindiawest" : "jiw",
"japanwest" : "jw",
"korea" : "k",
"koreacentral" : "kc",
"koreasouth" : "ks",
"norway" : "n",
"northcentralus" : "ncu",
"northcentralusstage" : "ncus",
"northeurope" : "ne",
"norwayeast" : "nwe",
"norwaywest" : "nww",
"qatarcentral" : "qc",
"singapore" : "s",
"southafrica" : "sa",
"southafricanorth" : "san",
"southeastasiastage" : "sas",
"southafricawest" : "saw",
"swedencentral" : "sc",
"southcentralus" : "scu",
"southcentralusstage" : "scus",
"southcentralusstg" : "sctg",
"southeastasia" : "sea",
"southindia" : "si",
"switzerlandnorth" : "sn",
"switzerlandwest" : "sw",
"switzerland" : "sz",
"uae" : "uae",
"uaecentral" : "uc",
"uk" : "uk",
"uaenorth" : "un",
"uksouth" : "us",
"unitedstates" : "us",
"unitedstateseuap" : "use",
"ukwest" : "uw",
"westcentralus" : "wcu",
"westeurope" : "we",
"westindia" : "wi",
"westus" : "wu",
"westus2" : "wu2",
"westus2stage" : "wu2s",
"westus3" : "wu3",
"westusstage" : "wus",
}
}
variable "prevent_rg_deletion" {
type = bool
default = true
description = "Prevent resource group deletion if resource group is not empty. Defaults to true."
}
variable "function_app_debug_logs" {
type = bool
default = false
description = "Enables routing of function app logs to eventhub for debugging eventhub & function app"
}
variable "app_settings" {
type = map(string)
default = {
FEATURE_FLAGS = ""
}
description = "Additional app settings"
}