generated from equinor/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
77 lines (62 loc) · 1.99 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
variable "system_topic_name" {
description = "The name of this Event Grid system topic."
type = string
}
variable "resource_group_name" {
description = "The name of the resource group to create the resources in."
type = string
}
variable "location" {
description = "The location to create the resources in."
type = string
}
variable "topic_type" {
description = "The topic type of the Event Grid system topic."
type = string
}
variable "source_arm_resource_id" {
description = "The ID of the source ARM resource to create this Event Grid system topic for."
type = string
}
variable "log_analytics_workspace_id" {
description = "The ID of the Log Analytics workspace to send diagnostics to."
type = string
}
variable "diagnostic_setting_name" {
description = "The name of this diagnostic setting."
type = string
default = "failure-logs"
}
variable "diagnostic_setting_enabled_log_categories" {
description = "A list of log categories to be enabled for this diagnostic setting."
type = list(string)
default = ["DeliveryFailures"]
}
variable "diagnostic_setting_enabled_metric_categories" {
description = "A list of metric categories to be enabled for this diagnostic setting."
type = list(string)
default = []
}
variable "event_subscriptions" {
description = "A map of event subscription to create for this Event Grid system topic. One of the endpoints must be specified."
type = map(object({
name = string
included_event_types = optional(list(string))
azure_function_endpoint = optional(object({
function_id = string
}))
storage_queue_endpoint = optional(object({
storage_account_id = string
queue_name = string
}))
webhook_endpoint = optional(object({
url = string
}))
}))
default = {}
}
variable "tags" {
description = "A map of tags to assign to the resources."
type = map(string)
default = {}
}