-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvariables.tf
156 lines (125 loc) · 3.78 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
variable "rsync_pattern" {
type = list(string)
description = "(Optional) A list of rsync pattern to include or exclude files and directories."
default = [
"--include=*"
]
}
variable "source_dir" {
type = string
description = "(Required) The location of the handler source code."
}
variable "module_name" {
type = string
description = "(Optional) The location of the handler source code module. Defaults to '.'"
default = "."
}
variable "description" {
type = string
description = "(Optional) Description of what the Lambda function does."
default = null
}
variable "layers" {
type = list(string)
description = "(Optional) List of Lambda Layer Version ARNs (maximum of 5) to attach to the Lambda function."
default = null
}
variable "memory_size" {
type = number
description = "(Optional) Amount of memory in MB the Lambda function can use at runtime. Defaults to 128."
default = 128
}
variable "timeout" {
type = number
description = "(Optional) The amount of time the Lambda function has to run in seconds. Defaults to 3."
default = 3
}
variable "function_name" {
type = string
description = "(Required) A unique name for the Lambda function."
}
variable "provisioned_concurrency_config" {
type = object({
provisioned_concurrent_executions = number
qualifier = string
})
description = "(Optional) Lambda Provisioned Concurrency Configuration."
default = null
}
variable "handler" {
type = string
description = "(Required) The function entrypoint in your code."
}
variable "reserved_concurrent_executions" {
type = number
description = "(Optional) The amount of reserved concurrent executions for this Lambda function."
default = null
}
variable "dead_letter_config" {
type = object({
target_arn = string
})
description = "(Optional) Nested block to configure the function's dead letter queue."
default = null
}
variable "vpc_config" {
type = object({
security_group_ids = list(string)
subnet_ids = list(string)
})
description = "(Optional) Provide this to allow your function to access the VPC."
default = null
}
variable "environment" {
type = object({
variables = map(string)
})
description = "(Optional) The Lambda environment's configuration settings."
default = null
}
variable "tracing_config" {
type = object({
mode = string
})
description = "(Optional) A child block with a single argument mode"
default = null
}
variable "policy" {
type = object({
json = string
})
description = "(Optional) An additional policy to attach to the Lambda function role."
default = null
}
variable "force_detach_policies" {
type = bool
description = "(Optional) Specifies to force detaching any policies the role has before destroying it. Defaults to false."
default = false
}
variable "publish" {
type = bool
description = "(Optional) Whether to publish creation/change as new Lambda function version. Defaults to false."
default = false
}
variable "runtime" {
type = string
description = "(Required) The identifier of the function's runtime."
}
variable "tags" {
type = map(string)
description = "(Optional) A mapping of tags to assign to the object."
default = null
}
variable "cloudwatch_log_subscription_filter" {
type = list(object({
name = string
filter_pattern = string
destination_arn = string
}))
description = "(Optional) A list of CloudWatch Logs subscription filter."
default = null
}
variable "cloudwatch_retention_in_days" {
default = null
description = "(Optional) Specifies the number of days you want to retain log events in the specified log group."
}