generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variable.tf
165 lines (146 loc) · 4.78 KB
/
variable.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
#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 = ""
description = "ManagedBy, eg ''."
}
variable "enabled" {
type = bool
default = true
description = "Set to false to prevent the module from creating any resources."
}
variable "tags" {
type = map(string)
default = {}
description = "A map of tags to add to all resources"
}
variable "log_analytics_workspace_name" {
type = string
default = "loganalytics"
description = "Name of the Log Analytics Workspace"
}
variable "log_analytics_workspace_location" {
type = string
default = "West Us"
description = "Location of the Workspace"
}
variable "resource_group_name" {
type = string
default = ""
description = "Resource group of deployment"
}
variable "log_analytics_workspace_sku" {
type = string
default = "PerGB2018"
description = "pecifies the Sku of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, CapacityReservation, and PerGB2018 (new Sku as of 2018-04-03). Defaults to PerGB2018"
}
variable "email_receiver" {
type = list(any)
default = []
description = "One or more email_receiver blocks as defined below."
}
variable "scheduled_query_rules_alert" {
type = any
default = {}
description = "Manages an AlertingAction Scheduled Query Rules resource within Azure Monitor."
}
variable "create_log_analytics_workspace" {
type = bool
default = true
description = "The Flag for Module Enable or Disabled if it will false it will take `existing_log_analytics_workspace`."
}
variable "retention_in_days" {
type = number
default = null
description = "The workspace data retention in days. Possible values are either 7 (Free Tier only) or range between 30 and 730."
}
variable "daily_quota_gb" {
type = string
default = "-1"
description = "The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited) if omitted."
}
variable "internet_ingestion_enabled" {
type = bool
default = true
description = "Should the Log Analytics Workspace support ingestion over the Public Internet? Defaults to true."
}
variable "internet_query_enabled" {
type = bool
default = true
description = "Should the Log Analytics Workspace support querying over the Public Internet? Defaults to true."
}
#### 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 "retention_policy_enabled" {
type = bool
default = false
description = "Is this Retention Policy enabled?"
}
variable "days" {
type = number
default = "90"
description = " The number of days for which this Retention Policy should apply."
}
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 "log_enabled" {
type = string
default = true
description = " Is this Diagnostic Log enabled? Defaults to true."
}
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."
}