forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
133 lines (112 loc) · 3.82 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
variable "name" {
type = string
description = "Name used for created AWS resources."
default = "lambda_promtail"
}
variable "write_address" {
type = string
description = "This is the Loki Write API compatible endpoint that you want to write logs to, either promtail or Loki."
default = "http://localhost:8080/loki/api/v1/push"
}
variable "bucket_names" {
type = set(string)
description = "List of S3 bucket names to create Event Notifications for."
default = []
}
variable "log_group_names" {
type = set(string)
description = "List of CloudWatch Log Group names to create Subscription Filters for."
default = []
}
variable "lambda_promtail_image" {
type = string
description = "The ECR image URI to pull and use for lambda-promtail."
default = ""
}
variable "username" {
type = string
description = "The basic auth username, necessary if writing directly to Grafana Cloud Loki."
default = ""
}
variable "password" {
type = string
description = "The basic auth password, necessary if writing directly to Grafana Cloud Loki."
sensitive = true
default = ""
}
variable "bearer_token" {
type = string
description = "The bearer token, necessary if target endpoint requires it."
sensitive = true
default = ""
}
variable "tenant_id" {
type = string
description = "Tenant ID to be added when writing logs from lambda-promtail."
default = ""
}
variable "keep_stream" {
type = string
description = "Determines whether to keep the CloudWatch Log Stream value as a Loki label when writing logs from lambda-promtail."
default = "false"
}
variable "print_log_line" {
type = string
description = "Determines whether we want the lambda to output the parsed log line before sending it on to promtail. Value needed to disable is the string 'false'"
default = "true"
}
variable "extra_labels" {
type = string
description = "Comma separated list of extra labels, in the format 'name1,value1,name2,value2,...,nameN,valueN' to add to entries forwarded by lambda-promtail."
default = ""
}
variable "drop_labels" {
type = string
description = "Comma separated list of labels to be drop, in the format 'name1,name2,...,nameN' to be omitted to entries forwarded by lambda-promtail."
default = ""
}
variable "omit_extra_labels_prefix" {
type = bool
description = "Whether or not to omit the prefix `__extra_` from extra labels defined in the variable `extra_labels`."
default = false
}
variable "batch_size" {
type = string
description = "Determines when to flush the batch of logs (bytes)."
default = ""
}
variable "lambda_vpc_subnets" {
type = list(string)
description = "List of subnet IDs associated with the Lambda function."
default = []
}
variable "lambda_vpc_security_groups" {
type = list(string)
description = "List of security group IDs associated with the Lambda function."
default = []
}
variable "kms_key_arn" {
type = string
description = "kms key arn for encrypting env vars."
default = ""
}
variable "skip_tls_verify" {
type = string
description = "Determines whether to verify the TLS certificate"
default = "false"
}
variable "kinesis_stream_name" {
type = set(string)
description = "Enter kinesis name if kinesis stream is configured as event source in lambda."
default = []
}
variable "sqs_enabled" {
type = bool
description = "Enables sending S3 logs to an SQS queue which will trigger lambda-promtail, unsuccessfully processed message are sent to a dead-letter-queue"
default = false
}
variable "sqs_queue_name_prefix" {
type = string
description = "Name prefix for SQS queues"
default = "s3-to-lambda-promtail"
}