generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
221 lines (199 loc) · 7.79 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#Module : LABEL
#Description : Terraform label module variables.
variable "name" {
type = string
default = ""
description = "Name (e.g. `app` or `cluster`)."
}
variable "environment" {
type = string
default = ""
description = "Environment (e.g. `prod`, `dev`, `staging`)."
}
variable "repository" {
type = string
default = ""
description = "Terraform current module repo"
}
variable "label_order" {
type = list(any)
default = ["name", "environment"]
description = "Label order, e.g. sequence of application name and environment `name`,`environment`,'attribute' [`webserver`,`qa`,`devops`,`public`,] ."
}
variable "managedby" {
type = string
default = "[email protected]"
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
}
variable "resource_group_name" {
type = string
description = "The name of the resource group in which to create the network security group."
}
variable "enabled" {
type = bool
description = "Set to false to prevent the module from creating any resources."
default = true
}
variable "application_type" {
type = string
default = "web"
description = "Required) Specifies the type of Application Insights to create. Valid values are ios for iOS, java for Java web, MobileCenter for App Center, Node.JS for Node.js, other for General, phone for Windows Phone, store for Windows Store and web for ASP.NET. Please note these values are case sensitive; unmatched values are treated as ASP.NET by Azure. Changing this forces a new resource to be created."
}
variable "retention_in_days" {
type = number
default = 90
description = "Specifies the retention period in days. Possible values are 30, 60, 90, 120, 180, 270, 365, 550 or 730. Defaults to 90."
}
variable "sampling_percentage" {
type = number
default = 100
description = " Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry."
}
variable "daily_data_cap_in_gb" {
type = number
default = 30
description = "Specifies the Application Insights component daily data volume cap in GB."
}
variable "web_test_enable" {
type = bool
default = false
}
variable "kind" {
type = string
default = ""
}
variable "frequency" {
default = 300
type = number
description = "Interval in seconds between test runs for this WebTest. Default is 300."
}
variable "timeout" {
default = 30
type = number
description = "Seconds until this WebTest will timeout and fail. Default is 30."
}
variable "monitored_enabled" {
type = bool
default = true
}
variable "retry_enabled" {
type = bool
default = true
description = "Allow for retries should this WebTest fail."
}
variable "description" {
type = string
default = ""
description = "Purpose/user defined descriptive test for this WebTest."
}
variable "test_body" {
default = "<Request Method=\"GET\" Guid=\"%s\" Version=\"1.1\" Url=\"%s\" ThinkTime=\"0\" Timeout=\"300\" ParseDependentRequests=\"PARSEDEPS\" FollowRedirects=\"True\" RecordResult=\"True\" Cache=\"True\" ResponseTimeGoal=\"0\" Encoding=\"utf-8\" ExpectedHttpStatusCode=\"200\" ExpectedResponseUrl=\"\" ReportingName=\"\" IgnoreHttpStatusCode=\"False\" />"
description = "WebTest XML Request body. If overridden, make sure to retain all the string format() parameters needed by the local variable calculations."
type = string
}
variable "parse_deps" {
default = "false"
type = bool
description = "Retrieve resources that are linked to by the test URL as part of the web test. Valid values are \"True\" or \"False\". Default value is \"False\"."
}
variable "location" {
type = string
default = ""
description = "(Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created."
}
variable "daily_data_cap_notifications_disabled" {
type = bool
default = false
description = "Optional) Specifies if a notification email will be send when the daily data volume cap is met."
}
variable "disable_ip_masking" {
type = bool
default = false
description = "By default the real client IP is masked as 0.0.0.0 in the logs. Use this argument to disable masking and log the real client IP. Defaults to false."
}
variable "workspace_id" {
type = string
default = null
description = "(Optional) Specifies the id of a log analytics workspace resource. Changing this forces a new resource to be created."
}
variable "local_authentication_disabled" {
type = bool
default = false
description = "(Optional) Disable Non-Azure AD based Auth. Defaults to false."
}
variable "internet_ingestion_enabled" {
type = bool
default = false
description = " (Optional) Should the Application Insights component support ingestion over the Public Internet? Defaults to true."
}
variable "internet_query_enabled" {
type = bool
default = false
description = "(Optional) Should the Application Insights component support querying over the Public Internet? Defaults to true."
}
variable "force_customer_storage_for_profiler" {
type = bool
default = false
description = "Should the Application Insights component force users to create their own storage account for profiling? Defaults to false."
}
variable "web_test_name" {
type = list(string)
default = []
}
variable "geo_locations" {
type = list(string)
default = ["us-ca-sjc-azr", "us-tx-sn1-azr", "us-il-ch1-azr", "us-va-ash-azr", "us-fl-mia-edge"]
description = "Specifies a list of where to physically run the tests from to give global coverage for accessibility of your application."
}
variable "list_of_test_urls" {
type = list(string)
default = []
description = "List of URLs to put in the availability tests. Example: [\"https://test1.example.com\", \"https://test2.example.com/app\"]"
}
variable "header" {
type = string
default = "<WebTest Name=\"WebTest1\" Id=\"%s\" Enabled=\"True\" CssProjectStructure=\"\" CssIteration=\"\" Timeout=\"0\" WorkItemIds=\"\" xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\" Description=\"%s\" CredentialUserName=\"\" CredentialPassword=\"\" PreAuthenticate=\"True\" Proxy=\"default\" StopOnError=\"False\" RecordedResultFile=\"\" ResultsLocale=\"\"><Items>"
}
variable "footer" {
type = string
default = "</Items></WebTest>"
}
#### enable diagnostic setting
variable "log_analytics_destination_type" {
type = string
default = "AzureDiagnostics"
description = "Possible values are AzureDiagnostics and Dedicated, default to AzureDiagnostics. When set to Dedicated, logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table."
}
variable "Metric_enable" {
type = bool
default = true
description = "Is this Diagnostic Metric enabled? Defaults to true."
}
variable "diagnostic_setting_enable" {
type = bool
default = true
}
variable "log_analytics_workspace_id" {
type = string
default = null
}
variable "category" {
type = string
default = null
description = " The name of a Diagnostic Log Category Group for this Resource."
}
variable "storage_account_id" {
type = string
default = null
description = "The ID of the Storage Account where logs should be sent."
}
variable "eventhub_name" {
type = string
default = null
description = "Specifies the name of the Event Hub where Diagnostics Data should be sent."
}
variable "eventhub_authorization_rule_id" {
type = string
default = null
description = "Specifies the ID of an Event Hub Namespace Authorization Rule used to send Diagnostics Data."
}