forked from schubergphilis/terraform-aws-mcaf-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
165 lines (138 loc) · 3.91 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
variable "name" {
type = string
description = "The name of the lambda"
}
variable "description" {
type = string
default = ""
description = "A description of the lambda"
}
variable "cloudwatch_logs" {
type = bool
default = true
description = "Whether or not to configure a CloudWatch log group"
}
variable "create_allow_all_egress_rule" {
type = bool
default = false
description = "Controls whether an egress rule to any ipv4 address will be created when the lambda is configured to run in a VPC"
}
variable "create_policy" {
type = bool
default = null
description = "Overrule whether the Lambda role policy has to be created"
}
variable "dead_letter_target_arn" {
type = string
default = null
description = "The ARN of an SNS topic or SQS queue to notify when an invocation fails"
}
variable "environment" {
type = map(string)
default = null
description = "A map of environment variables to assign to the lambda"
}
variable "filename" {
type = string
default = null
description = "The path to the function's deployment package within the local filesystem"
}
variable "handler" {
type = string
default = "main.handler"
description = "The function entrypoint in your code"
}
variable "kms_key_arn" {
type = string
default = null
description = "The ARN for the KMS key used to encrypt the environment variables"
}
variable "layers" {
type = list(string)
default = []
description = "List of Lambda layer ARNs to be used by the Lambda function"
}
variable "log_retention" {
type = number
default = 14
description = "Number of days to retain log events in the specified log group"
}
variable "memory_size" {
type = number
default = null
description = "The memory size of the lambda"
}
variable "runtime" {
type = string
default = "python3.9"
description = "The function runtime to use"
}
variable "reserved_concurrency" {
type = number
default = null
description = "The amount of reserved concurrent executions for this lambda function"
}
variable "role_arn" {
type = string
default = null
description = "An optional lambda execution role"
}
variable "permissions_boundary" {
type = string
default = null
description = "The permissions boundary to set on the role"
}
variable "policy" {
type = string
default = null
description = "A valid lambda policy JSON document. Required if you don't specify a role_arn"
}
variable "publish" {
type = bool
default = false
description = "Whether to publish creation/change as new lambda function version"
}
variable "retries" {
type = number
default = null
description = "Maximum number of retries for the Lambda invocation"
}
variable "s3_bucket" {
type = string
default = null
description = "The S3 bucket location containing the function's deployment package"
}
variable "s3_key" {
type = string
default = null
description = "The S3 key of an object containing the function's deployment package"
}
variable "s3_object_version" {
type = string
default = null
description = "The object version containing the function's deployment package"
}
variable "source_code_hash" {
type = string
default = null
description = "Optional source code hash"
}
variable "subnet_ids" {
type = list(string)
default = null
description = "The subnet ids where this lambda needs to run"
}
variable "timeout" {
type = number
default = 5
description = "The timeout of the lambda"
}
variable "tracing_config_mode" {
type = string
default = null
description = "The lambda's AWS X-Ray tracing configuration"
}
variable "tags" {
type = map(string)
description = "A mapping of tags to assign to the bucket"
}