-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
93 lines (80 loc) · 2.46 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
variable "user_assigned_identity" {
type = object({
name = string
resource_group = string
})
description = "User Assigned Identity to associate to the azure function."
}
variable "loki_endpoint_url" {
type = string
description = "Endpoint for Loki."
}
variable "loki_authentication" {
type = object({
username = string
password = string
})
sensitive = true
description = "Authentication information for Loki endpoint."
}
variable "loki_label_names" {
type = string
description = "Comma separated list of fields to use as Loki entry labels (max 10 labels)."
default = ""
}
variable "resource_graph_query_ids" {
type = string
description = "Comma separated list of Resource Graph Query to use (must be a resource ID)."
}
variable "schedule_cron" {
type = string
description = "A schedule cron definition. This will be used as period to query the graph id. Format is [sec min hour day week month]."
default = "0 0 */2 * * *"
}
variable "log_level" {
type = string
description = "Log level for the deployed function. Possible values: [Debug, Information, Error]."
default = "Information"
validation {
condition = contains(["Debug", "Information", "Error"], var.log_level)
error_message = "Valid values are [Debug, Information, Error]."
}
}
variable "func_publish_additional_args" {
type = string
description = "Additional arguments to pass to the azure publish function. See `func azure publishapp --help`."
default = "--python"
}
variable "resource_group" {
type = string
default = "rg-az-graph-collector"
description = "Resource Group to create."
}
variable "location" {
type = string
default = "westeurope"
description = "Location where the resources will be created."
}
variable "function_app_identifier" {
type = string
default = "resource-graph-collector"
description = "Identifier to be used in the name composition."
}
variable "tags" {
type = map(string)
default = {
"deployer" = "gchiesa"
"application" = "azure-resource-graph-collector"
"stage" = "dev"
}
}
variable "enable_loki_publisher" {
type = bool
default = true
description = "Flag to enable write the queries result into Loki"
}
variable "enable_azure_blob_publisher" {
type = bool
default = false
description = "Flag to enable write the queries result into Azure Blob Container"
}