-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
91 lines (76 loc) · 2.32 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
variable "es_endpoint" {
type = string
description = "The Elasticsearch endpoint for the Lambda function to connect to"
}
variable "es_domain_arn" {
type = string
description = "The Elasticsearch domain ARN"
}
variable "es_security_group_id" {
type = string
description = "The Elasticsearch cluster security group ID"
}
variable "schedule" {
type = string
default = "cron(0 3 * * ? *)"
description = "CloudWatch Events rule schedule using cron or rate expression"
}
variable "vpc_id" {
type = string
description = "The VPC ID for the Lambda function"
}
variable "subnet_ids" {
type = list(string)
description = "Subnet IDs"
}
variable "sns_arn" {
type = string
default = ""
description = "SNS ARN to publish alerts"
}
variable "delete_after" {
type = number
default = 15
description = "Number of days to preserve"
}
variable "index_format" {
type = string
default = "%Y.%m.%d"
description = "Combined with 'index' variable and is used to evaluate the index age"
}
variable "index_re" {
type = string
default = ".*"
description = "Regular Expression that matches the index names to clean up (not including trailing dash and date)"
}
variable "skip_index_re" {
type = string
#default = "^\\.kibana*"
default = null
description = <<-EOT
Regular Expression that matches the index names to ignore (not clean up). Takes precedence over `index_re`.
BY DEFAULT (when value is `null`), a pattern is used to exclude Kibana indexes.
Use `"^$"` if you do not want to skip any indexes. Include an exclusion for `kibana` if you
want to use a custom value and also exclude the kibana indexes.
EOT
}
variable "python_version" {
type = string
default = "3.12"
description = "The Python version to use"
}
variable "timeout" {
type = number
default = 300
description = "Timeout for Lambda function in seconds"
}
variable "artifact_url" {
type = string
description = "URL template for the remote artifact"
default = "https://artifacts.cloudposse.com/$$${module_name}/$$${git_ref}/$$${filename}"
}
variable "artifact_git_ref" {
type = string
description = "Git ref of the lambda artifact to use. Use latest version if null."
default = ""
}