-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
138 lines (115 loc) · 3.48 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
variable "function_name" {
type = string
description = "A unique name for this Lambda Function"
}
variable "description" {
type = string
default = "Created by Terraform"
description = "A description for this Lambda Function"
}
variable "publish" {
type = bool
default = true
description = "Whether to publish creation/change as new Lambda Function Version."
}
variable "alias" {
type = string
default = "live"
description = "Creates an alias that points to the specified Lambda function version"
}
variable "filename" {
type = string
default = ""
description = "The zip file to upload containing the function code"
}
variable "image_uri" {
type = string
default = ""
description = "The ECR image URI containing the function's deployment package. Only specify when var.package_type is Image"
}
variable "handler" {
default = "lambda_function.lambda_handler"
description = "The function entrypoint. Only specify when var.package_type is Zip"
}
variable "runtime" {
type = string
default = "python3.7"
description = "Lambda execution environment language. Only specify when var.package_type is Zip"
}
variable "memory_size" {
default = 128
description = "Amount of memory in MB this Lambda Function can use at runtime. Defaults to 128"
}
variable "ephemeral_storage" {
default = 512
description = "Amount of Ephemeral storage(/tmp) in MB this Lambda Function can use at runtime. Defaults to 512"
}
variable "timeout" {
default = 5
description = "The amount of time this Lambda Function has to run in seconds"
}
variable "env_vars" {
type = map
default = null
description = "A map that defines environment variables for this Lambda function."
}
variable "retention_in_days" {
default = 14
description = "Default value for this functions cloudwatch logs group"
}
variable "subnet_ids" {
type = list
default = []
description = "Required for running this Lambda function in a VPC"
}
variable "security_group_ids" {
type = list
default = []
description = "Required for running this Lambda function in a VPC"
}
variable "use_secrets" {
type = bool
default = false
description = "Required to be set to true if using secret_arn"
}
variable "secret_arn" {
type = string
default = null
description = "The ARN of the Secrets Manager secret, including the 6 random characters at the end"
}
variable "layers" {
type = list
default = []
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to this Lambda Function. Only specify when var.package_type is Zip"
}
variable "package_type" {
type = string
default = "Zip"
description = "Lambda deployment package type"
}
variable "tags" {
type = map
default = {}
description = "A mapping of tags to assign to the resource"
}
variable "sns_target_arn" {
type = string
default = ""
description = "SNS arn for the target when there is a failure"
}
variable "sqs_target_arn" {
type = string
default = ""
description = "SQS arn for the target when there is a failure"
}
variable "dead_letter_config" {
type = object({
target_arn = string
})
default = null
}
variable "use_parameters_and_secrets_layer" {
type = bool
default = false
description = "Required to be set to true if using the AWS parameters and secrets lambda extension. Only specify when var.package_type is Zip"
}