-
Notifications
You must be signed in to change notification settings - Fork 8
/
variables-monitoring-function.tf
103 lines (88 loc) · 3.34 KB
/
variables-monitoring-function.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
###############################
# Monitoring function
###############################
variable "monitoring_function_enabled" {
description = "Whether additional Monitoring Function is enabled."
type = bool
default = true
}
variable "monitoring_function_splunk_token" {
description = "Access Token to send metrics to Splunk Observability."
type = string
default = null
}
variable "monitoring_function_logs_categories" {
description = "Monitoring function log categories to send to destinations. All by default."
type = list(string)
default = null
}
variable "monitoring_function_logs_metrics_categories" {
description = "Monitoring function metrics categories to send to destinations. All by default."
type = list(string)
default = null
}
variable "monitoring_function_zip_package_path" {
description = "Zip package path for monitoring function."
type = string
default = "https://github.com/claranet/fame/releases/download/v1.2.1/fame.zip"
}
variable "monitoring_function_metrics_extra_dimensions" {
description = "Extra dimensions sent with metrics."
type = map(string)
default = {}
}
variable "monitoring_function_extra_application_settings" {
description = "Extra application settings to set on monitoring Function."
type = map(string)
default = {}
}
variable "monitoring_function_assign_roles" {
description = "True to assign roles for the monitoring Function on the Log Analytics Workspace (Log Analytics Reader) and the Subscription (Reader)."
type = bool
default = true
}
variable "monitoring_function_application_insights_enabled" {
description = "Whether FAME Application Insights is deployed."
type = bool
default = true
}
variable "monitoring_function_storage_account_custom_name" {
description = "FAME Storage Account custom name. Empty by default, using naming convention."
type = string
default = null
}
variable "monitoring_function_function_app_custom_name" {
description = "FAME Function App custom name. Empty by default, using naming convention."
type = string
default = null
}
variable "monitoring_function_application_insights_custom_name" {
description = "FAME Application Insights custom name. Empty by default, using naming convention."
type = string
default = null
}
variable "monitoring_function_advanced_threat_protection_enabled" {
description = "FAME function app's storage account: Enable Advanced Threat Protection."
type = bool
default = false
}
variable "monitoring_function_app_service_plan_name" {
description = "FAME App Service Plan custom name. Empty by default, using naming convention."
type = string
default = null
}
variable "monitoring_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 "monitoring_rbac_storage_table_role_principal_ids" {
description = "The principal IDs of the users, groups, and service principals to assign the `Storage Table Data *` role to."
type = object({
contributors = optional(list(string), [])
readers = optional(list(string), [])
})
default = {}
nullable = false
}