-
Notifications
You must be signed in to change notification settings - Fork 7
/
variables-logs.tf
96 lines (83 loc) · 3.83 KB
/
variables-logs.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
# Diag settings / logs parameters
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 specify an Azure EventHub to send logs and metrics to, you need to provide a formated 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 `|` character.
EOD
nullable = false
}
# Variable per module
variable "express_route_logs_categories" {
type = list(string)
description = "Log categories to send to destinations."
default = null
}
variable "express_route_logs_metrics_categories" {
type = list(string)
description = "Metrics categories to send to destinations."
default = null
}
variable "express_route_custom_diagnostic_settings_name" {
description = "Custom name of the diagnostics settings, name will be 'default' if not set."
type = string
default = "default"
}
variable "express_route_logs_destinations_ids" {
type = list(string)
description = <<EOD
List of destination resources IDs for logs diagnostic destination for `Express Route` resource.
Can be `Storage Account`, `Log Analytics Workspace` and `Event Hub`. No more than one of each can be set.
If you want to specify an Azure EventHub to send logs and metrics to, you need to provide a formated 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 `|` character.
EOD
default = null
}
variable "firewall_logs_categories" {
type = list(string)
description = "Log categories to send to destinations."
default = null
}
variable "firewall_logs_metrics_categories" {
type = list(string)
description = "Metrics categories to send to destinations."
default = null
}
variable "firewall_custom_diagnostic_settings_name" {
description = "Custom name of the diagnostics settings, name will be 'default' if not set."
type = string
default = "default"
}
variable "firewall_logs_destinations_ids" {
type = list(string)
description = <<EOD
List of destination resources IDs for logs diagnostic destination for `Azure Firewall` resource.
Can be `Storage Account`, `Log Analytics Workspace` and `Event Hub`. No more than one of each can be set.
If you want to specify an Azure EventHub to send logs and metrics to, you need to provide a formated 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 `|` character.
EOD
default = null
}
variable "vpn_gateway_logs_categories" {
type = list(string)
description = "Log categories to send to destinations."
default = null
}
variable "vpn_gateway_logs_metrics_categories" {
type = list(string)
description = "Metrics categories to send to destinations."
default = null
}
variable "vpn_gateway_custom_diagnostic_settings_name" {
description = "Custom name of the diagnostics settings, name will be 'default' if not set."
type = string
default = "default"
}
variable "vpn_gateway_logs_destinations_ids" {
type = list(string)
description = <<EOD
List of destination resources IDs for logs diagnostic destination for `VPN Gateway` resource.
Can be `Storage Account`, `Log Analytics Workspace` and `Event Hub`. No more than one of each can be set.
If you want to specify an Azure EventHub to send logs and metrics to, you need to provide a formated 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 `|` character.
EOD
default = null
}