-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
48 lines (44 loc) · 1.67 KB
/
Copy pathvariables.tf
File metadata and controls
48 lines (44 loc) · 1.67 KB
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
variable "memory" {
type = number
default = 128
description = <<EOF
The amount of memory to reserve and cap the service.
If the service exceeds this amount, the service will be killed with exit code 127 representing "Out-of-memory".
Memory is measured in MiB, or megabytes.
This means the default is 128 MiB or 0.125 GiB.
EOF
}
variable "timeout" {
type = number
default = 3
description = <<EOF
The maximum number of seconds the service is allotted to execute.
The maximum this can be set is 900 seconds (15 minutes).
EOF
}
variable "runtime" {
type = string
description = <<EOF
The runtime of the service.
As of this publishing, the possible values supported by AWS Lambda for zip-packaged functions are:
nodejs24.x, nodejs22.x, python3.14, python3.13, python3.12, python3.11, python3.10, java25, java21, java17, java11, java8.al2, dotnet10, dotnet8, ruby4.0, ruby3.4, ruby3.3, provided.al2023, provided.al2.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtimes-supported
EOF
}
variable "handler" {
type = string
description = <<EOF
The entrypoint defined in the code that AWS executes when running the lambda.
See https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-features.html#gettingstarted-features-programmingmodel for runtime-specific instructions.
EOF
}
variable "alert_thresholds" {
type = object({
error_rate = optional(number, 5)
})
default = {}
description = <<EOF
Thresholds for CloudWatch alarms on the lambda function. Only active when a notification connection is provided.
- error_rate: Percentage of invocations that error over a 5-minute period to trigger the alarm (default: 5%)
EOF
}