-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
139 lines (122 loc) · 4.16 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
134
135
136
137
138
139
variable "additional_role_policy" {
type = string
description = "JSON of a aws_iam_policy_document datasource to add to the role policies"
default = null
}
variable "alarm_backlog" {
type = object({
minutes = optional(number, 5)
datapoints_to_alarm = optional(number, 5)
evaluation_periods = optional(number, 5)
period = optional(number, 300)
threshold = optional(number, 1)
})
description = "Errors alarm parameters"
default = {}
}
variable "alarm_enabled" {
type = bool
description = "Whether to create the errors and success rate alarms or not"
default = true
}
variable "alarm_errors" {
type = object({
datapoints_to_alarm = optional(number, 9)
evaluation_periods = optional(number, 10)
period = optional(number, 300)
threshold = optional(number, 1)
})
description = "Errors alarm parameters"
default = {}
}
variable "alarm_success_rate" {
type = object({
datapoints_to_alarm = optional(number, 1)
evaluation_periods = optional(number, 1)
period = optional(number, 60)
threshold = optional(number, 99)
})
description = "Success rate alarm parameters"
default = {}
}
variable "alarm_throttles" {
type = object({
datapoints_to_alarm = optional(number, 2)
evaluation_periods = optional(number, 3)
period = optional(number, 60)
threshold = optional(number, 1)
})
description = "Throttles alarm parameters"
default = {}
}
variable "alarm_topic_arn" {
type = string
description = "ARN of the SNS Topic used for notifying about alarm/ok messages."
default = null
}
variable "architectures" {
type = list(string)
description = "Instruction set architecture for your Lambda function. Valid values are ['x86_64'] and ['arm64']. Default is ['x86_64']. Removing this attribute, function's architecture stay the same"
default = null
}
variable "container_image_tag" {
type = string
description = "Tag within the container repository, can e.g. take values from data.aws_ecr_image.my-image.image_tag"
}
variable "container_repository_url" {
type = string
description = "URL of the repository, can e.g. take values from data.aws_ecr_repository.my-repo.repository_url"
}
variable "dead_letter_queue_create" {
type = bool
description = "Defines if you want to add a dead letter queue to your lambda function, capturing all errored events."
default = true
}
variable "environment_variables" {
type = map(string)
description = "Map of environment variables to be added to the lambda context."
default = {}
}
variable "insights_enable" {
type = bool
description = "Defines whether to attach the required policies to run Lambda Insights."
default = true
}
variable "label_orders" {
type = object({
cloudwatch = optional(list(string)),
iam = optional(list(string)),
lambda = optional(list(string)),
sqs = optional(list(string)),
})
default = {}
description = "Overrides the `labels_order` for the different labels to modify ID elements appear in the `id`"
}
variable "memory_size" {
type = number
description = "Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128."
default = null
}
variable "reserved_concurrent_executions" {
type = number
description = "Amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1"
default = null
}
variable "timeout" {
type = number
description = "Timeout ouf the lambda function in seconds."
default = 300
}
variable "vpc_config" {
type = object({
ipv6_allowed_for_dual_stack = optional(bool),
security_group_ids = list(string),
subnet_ids = list(string),
})
description = "VPC config for lambda function."
default = {
ipv6_allowed_for_dual_stack = false
security_group_ids = [],
subnet_ids = [],
}
}