-
Notifications
You must be signed in to change notification settings - Fork 9
/
variables-log-analytics.tf
191 lines (163 loc) · 6.31 KB
/
variables-log-analytics.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
###############################
# Log Management variables
###############################
variable "logs_resource_group_name" {
description = "Resource Group the resources for log management will belong to. Will use `resource_group_name` if not set."
type = string
default = ""
}
variable "log_analytics_workspace_name_prefix" {
description = "Log Analytics name prefix"
type = string
default = ""
}
variable "log_analytics_workspace_custom_name" {
description = "Azure Log Analytics Workspace custom name. Empty by default, using naming convention."
type = string
default = ""
}
variable "log_analytics_workspace_sku" {
description = "Specifies the SKU of the Log Analytics Workspace. Possible values are Free, PerNode, Premium, Standard, Standalone, Unlimited, and PerGB2018 (new Sku as of 2018-04-03)."
type = string
default = "PerGB2018"
}
variable "log_analytics_workspace_retention_in_days" {
description = "The workspace data retention in days. Possible values range between 30 and 730."
type = number
default = 30
}
variable "log_analytics_workspace_daily_quota_gb" {
description = "The workspace daily quota for ingestion in GB. Defaults to -1 (unlimited)."
type = number
default = -1
}
variable "logs_storage_account_enabled" {
description = "Whether the dedicated Storage Account for logs is deployed."
type = bool
default = true
}
variable "logs_storage_account_name_prefix" {
description = "Storage Account name prefix"
type = string
default = ""
}
variable "logs_storage_account_custom_name" {
description = "Storage Account for logs custom name. Empty by default, using naming convention."
type = string
default = ""
}
variable "logs_storage_account_kind" {
description = "Storage Account Kind"
type = string
default = "StorageV2"
}
variable "logs_storage_account_tier" {
description = "Storage Account tier"
type = string
default = "Standard"
}
variable "logs_storage_account_access_tier" {
description = "Defines the access tier for `BlobStorage`, `FileStorage` and `StorageV2` accounts. Valid options are `Hot` and `Cool`, defaults to `Hot`."
type = string
default = "Hot"
}
variable "logs_storage_account_replication_type" {
description = "Storage Account Replication type"
type = string
default = "LRS"
}
variable "logs_storage_min_tls_version" {
description = "Storage Account minimal TLS version"
type = string
default = "TLS1_2"
}
variable "logs_storage_account_advanced_threat_protection_enabled" {
description = "Enable/disable Advanced Threat Protection, see [here](https://docs.microsoft.com/en-us/azure/storage/common/storage-advanced-threat-protection?tabs=azure-portal) for more information."
type = bool
default = false
}
variable "logs_storage_account_https_traffic_only_enabled" {
description = "Enable/disable HTTPS traffic only"
type = bool
default = true
}
variable "logs_storage_account_archived_logs_fileshare_enabled" {
description = "Enable/disable archived-logs file share creation"
type = bool
default = false
}
variable "logs_storage_account_archived_logs_fileshare_name" {
description = "Name of the file share in which externalized logs are stored"
type = string
default = "archived-logs"
}
variable "logs_storage_account_archived_logs_fileshare_quota" {
description = "The maximum size in GB of the archived-logs file share, default is 5120"
type = number
default = null
}
variable "logs_storage_account_archiving_enabled" {
description = "Enable/disable blob archiving lifecycle"
type = bool
default = true
}
variable "logs_tier_to_cool_after_days_since_modification_greater_than" {
description = "Change blob tier to cool after x days without modification"
type = number
default = 30
}
variable "logs_tier_to_archive_after_days_since_modification_greater_than" {
description = "Change blob tier to Archive after x days without modification"
type = number
default = 90
}
variable "logs_delete_after_days_since_modification_greater_than" {
description = "Delete blob after x days without modification"
type = number
default = 365
}
variable "logs_storage_account_customer_managed_key" {
description = "Customer Managed Key. Please refer to the [documentation](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account#customer_managed_key) for more information."
type = object({
key_vault_key_id = optional(string)
managed_hsm_key_id = optional(string)
user_assigned_identity_id = optional(string)
})
default = null
}
variable "logs_storage_account_identity_type" {
description = "The identity type of the storage account. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned`."
type = string
default = "SystemAssigned"
}
variable "logs_storage_account_identity_ids" {
description = "List of User Assigned Identity IDs to assign to the Storage Account."
type = list(string)
default = null
}
variable "logs_storage_shared_access_key_enabled" {
description = "Indicates whether the Storage Account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Entra ID)."
type = bool
default = false
nullable = false
}
variable "logs_rbac_storage_contributor_role_principal_ids" {
description = "The principal IDs of the users, groups, and service principals to assign the `Storage Account Contributor` role to."
type = list(string)
default = []
nullable = false
}
variable "logs_rbac_storage_blob_role_principal_ids" {
description = "The principal IDs of the users, groups, and service principals to assign the `Storage Blob Data *` different roles to if Blob containers are created."
type = object({
blob_owners = optional(list(string), [])
blob_contributors = optional(list(string), [])
blob_readers = optional(list(string), [])
})
default = {
blob_owners = []
blob_contributors = []
blob_readers = []
}
nullable = false
}