-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
52 lines (45 loc) · 1.21 KB
/
variables.tf
File metadata and controls
52 lines (45 loc) · 1.21 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
49
50
51
52
variable "lambda_function_names" {
type = map(string)
description = <<EOT
Map of logical name to exact AWS function name.
Key = logical identifier (e.g. auth_login)
Value = exact function name in AWS (e.g. attendance-auth-login)
EOT
}
variable "lambda_role_names" {
type = map(string)
description = <<EOT
Map of logical name to IAM execution role name.
Keys must match keys in lambda_function_names.
EOT
}
variable "artifacts_dir" {
type = string
description = "Path to the directory containing zipped Lambda artifacts built by deploy.sh"
default = "../devops-backend/infrastructure/artifacts"
}
variable "runtime" {
type = string
description = "Lambda runtime"
default = "nodejs20.x"
}
variable "timeout" {
type = number
description = "Lambda timeout in seconds"
default = 10
}
variable "memory_size" {
type = number
description = "Lambda memory in MB"
default = 128
}
variable "tags" {
type = map(string)
description = "Tags applied to all resources"
default = {}
}
variable "log_retention_days" {
type = number
description = "CloudWatch log retention in days for all Lambda functions"
default = 14
}