-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
248 lines (206 loc) · 6.85 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
###########
# Datadog
###########
variable "datadog_extension_layer_version" {
description = "Version for the Datadog Extension Layer"
type = number
default = 67
}
variable "datadog_dotnet_layer_version" {
description = "Version for the Datadog .NET Layer"
type = number
default = 16
}
variable "datadog_java_layer_version" {
description = "Version for the Datadog Java Layer"
type = number
default = 15
}
variable "datadog_node_layer_version" {
description = "Version for the Datadog Node Layer"
type = number
default = 117
}
variable "datadog_python_layer_version" {
description = "Version for the Datadog Python Layer"
type = number
default = 104
}
###################
# Lambda Function
###################
variable "architectures" {
description = "Instruction set architecture for your Lambda function. Valid values are [\"x86_64\"] and [\"arm64\"]."
type = list(string)
default = ["x86_64"]
}
variable "code_signing_config_arn" {
description = "To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function."
type = string
default = null
}
variable "dead_letter_config_target_arn" {
description = "ARN of an SNS topic or SQS queue to notify when an invocation fails."
type = string
default = null
}
variable "description" {
description = "Description of what your Lambda Function does."
type = string
default = null
}
variable "environment_variables" {
description = "Map of environment variables that are accessible from the function code during execution."
type = map(string)
default = {}
}
variable "ephemeral_storage_size" {
description = "The amount of Ephemeral storage(/tmp) to allocate for the Lambda Function in MB."
type = number
default = null
}
variable "file_system_config_arn" {
description = "Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system."
type = string
default = null
}
variable "file_system_config_local_mount_path" {
description = "Path where the function can access the file system, starting with /mnt/."
type = string
default = null
}
variable "filename" {
description = "Path to the function's deployment package within the local filesystem."
type = string
default = null
}
variable "function_name" {
description = "Unique name for your Lambda Function."
type = string
default = null
}
variable "handler" {
description = "Function entrypoint in your code."
type = string
default = null
}
variable "kms_key_arn" {
description = "Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables."
type = string
default = null
}
variable "layers" {
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
type = list(string)
default = []
}
variable "logging_config_application_log_level" {
description = "For JSON structured logs, choose the detail level of the logs your application sends to CloudWatch when using supported logging libraries."
type = string
default = null
}
variable "logging_config_log_format" {
description = "Select between Text and structured JSON format for your function's logs."
type = string
default = null
}
variable "logging_config_log_group" {
description = "The CloudWatch log group your function sends logs to."
type = string
default = null
}
variable "logging_config_system_log_level" {
description = "For JSON structured logs, choose the detail level of the Lambda platform event logs sent to CloudWatch, such as ERROR, DEBUG, or INFO."
type = string
default = null
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda Function can use at runtime."
type = number
default = null
}
variable "package_type" {
description = "Lambda deployment package type."
type = string
default = null
}
variable "publish" {
description = "Whether to publish creation/change as new Lambda Function Version."
type = bool
default = null
}
variable "reserved_concurrent_executions" {
description = "Amount of reserved concurrent executions for this lambda function."
type = number
default = null
}
variable "role" {
description = "Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources."
type = string
default = null
}
variable "runtime" {
description = "Identifier of the function's runtime."
type = string
default = null
}
variable "s3_bucket" {
description = "S3 bucket location containing the function's deployment package."
type = string
default = null
}
variable "s3_key" {
description = "S3 key of an object containing the function's deployment package."
type = string
default = null
}
variable "s3_object_version" {
description = "Object version containing the function's deployment package."
type = string
default = null
}
variable "skip_destroy" {
description = "Set to true if you do not wish the function to be deleted at destroy time, and instead just remove the function from the Terraform state."
type = bool
default = null
}
variable "snap_start_apply_on" {
description = "Conditions where snap start is enabled."
type = string
default = null
}
variable "source_code_hash" {
description = "Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3_key."
type = string
default = null
}
variable "tags" {
description = "Map of tags to assign to the object."
type = map(string)
default = null
}
variable "timeout" {
description = "Amount of time your Lambda Function has to run in seconds."
type = number
default = null
}
variable "tracing_config_mode" {
description = "Whether to sample and trace a subset of incoming requests with AWS X-Ray."
type = string
default = null
}
variable "vpc_config_ipv6_allowed_for_dual_stack" {
description = "Allows outbound IPv6 traffic on VPC functions that are connected to dual-stack subnets."
type = bool
default = null
}
variable "vpc_config_security_group_ids" {
description = "List of security group IDs associated with the Lambda function."
type = set(string)
default = null
}
variable "vpc_config_subnet_ids" {
description = "List of subnet IDs associated with the Lambda function."
type = set(string)
default = null
}