-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
108 lines (85 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
variable "timezone" {
description = "tz database timezone name (e.g. Asia/Tokyo)"
default = "UTC"
}
variable "memory" {
description = "Lambda Function memory in megabytes"
default = 256
}
variable "timeout" {
description = "Lambda Function timeout in seconds"
default = 60
}
variable "batch_size" {
description = "Maximum number of records passed for a single Lambda invocation"
}
variable "kinesis_stream_arn" {
description = "Source Kinesis Data Streams stream name"
}
variable "elasticsearch_host" {
description = "Elasticsearch Service endpoint (without https://)"
}
variable "elasticsearch_arn" {
description = "Elasticsearch Service ARN"
}
variable "index_name_prefix" {
description = "Prefix for Elasticsearch indices names"
}
variable "lambda_package_url" {
description = "Lambda package URL (see Usage in README)"
}
variable "handler" {
description = "Lambda Function handler (entrypoint)"
default = "main.handler"
}
variable "runtime" {
description = "Lambda Function runtime"
default = "python3.7"
}
variable "name" {
description = "Resource name"
}
variable "starting_position" {
description = "Kinesis ShardIterator type (see: https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html )"
default = "TRIM_HORIZON"
}
variable "failed_log_s3_bucket" {
description = "S3 bucket name for saving failed logs (ES API errors etc.)"
}
variable "failed_log_s3_prefix" {
description = "Path prefix for failed logs"
}
variable "log_id_field" {
description = "Key name for unique log ID"
default = "log_id"
}
variable "log_type_field" {
description = "Key name for log type"
default = "log_type"
}
variable "log_type_unknown_prefix" {
description = "Log type prefix for logs without log type field"
default = "unknown"
}
variable "log_timestamp_field" {
description = "Key name for log timestamp"
default = "time"
}
variable "log_type_field_whitelist" {
description = "Log type whitelist (if empty, all types will be processed)"
default = []
type = list(string)
}
variable "tracing_mode" {
description = "X-Ray tracing mode (see: https://docs.aws.amazon.com/lambda/latest/dg/API_TracingConfig.html )"
default = "PassThrough"
}
variable "tags" {
description = "Tags for Lambda Function"
type = map(string)
default = {}
}
variable "log_retention_in_days" {
description = "Lambda Function log retention in days"
default = 30
}