generated from tothenew/terraform-aws-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
_variables.tf
63 lines (54 loc) · 2.02 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
variable "resource_id" {
type = string
description = "The ID of the resource on which activate the diagnostic settings."
}
variable "log_categories" {
type = list(string)
default = null
description = "List of log categories. Defaults to all available."
}
variable "excluded_log_categories" {
type = list(string)
default = []
description = "List of log categories to exclude."
}
variable "metric_categories" {
type = list(string)
default = null
description = "List of metric categories. Defaults to all available."
}
variable "logs_destinations_ids" {
type = list(string)
description = <<EOD
List of destination resources IDs for logs diagnostic destination.
Can be `Storage Account`, `Log Analytics Workspace` and `Event Hub`. No more than one of each can be set.
If you want to use Azure EventHub as destination, you must provide a formatted string with both the EventHub Namespace authorization send ID and the EventHub name (name of the queue to use in the Namespace) separated by the <code>|</code> character.
EOD
}
variable "log_analytics_destination_type" {
type = string
default = "AzureDiagnostics"
description = "When set to 'Dedicated' logs sent to a Log Analytics workspace will go into resource specific tables, instead of the legacy AzureDiagnostics table."
}
# Generic naming variables
variable "name_prefix" {
description = "Optional prefix for the generated name"
type = string
default = ""
}
variable "name_suffix" {
description = "Optional suffix for the generated name"
type = string
default = ""
}
variable "use_caf_naming" {
description = "Use the Azure CAF naming provider to generate default resource name. `custom_name` override this if set. Legacy default name is used if this is set to `false`."
type = bool
default = true
}
# Custom naming override
variable "custom_name" {
description = "Name of the diagnostic settings, generated if empty."
type = string
default = ""
}