-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
138 lines (120 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
variable "function_name" {
description = "(Required) Unique name for your Lambda Function"
type = string
nullable = false
}
variable "description" {
description = "(Optional) Description of what your Lambda Function does"
type = string
nullable = true
default = null
}
variable "runtime" {
description = "(Conditional) Identifier of the function's runtime. Required unless image_uri is specified."
type = string
nullable = true
default = null
}
variable "architectures" {
description = "(Optional, Default: [\"x86_64\"]) The list of architectures supported by the function"
type = list(string)
nullable = false
default = ["x86_64"]
}
variable "handler" {
description = "(Conditional) Function entrypoint in your code. Required unless image_uri is specified."
type = string
nullable = true
default = null
}
variable "image_uri" {
description = "(Optional, Default: null) The URI of a container image in ECR. Conflicts with s3_bucket."
type = string
nullable = true
default = null
}
variable "image_config" {
description = "(Optional, Default: null) Container image configuration values that override the values in the container image Dockerfile"
type = object({
command = optional(list(string))
entry_point = optional(list(string))
working_directory = optional(string)
})
nullable = true
default = null
}
variable "s3_bucket" {
description = "(Optional, Default: null) The S3 bucket holding the function's deployment package. Conflicts with image_uri."
type = string
nullable = true
default = null
}
variable "s3_key" {
description = "(Optional, Default: null) The S3 key of an object in the deployment bucket"
type = string
nullable = true
default = null
}
variable "s3_object_version" {
description = "(Optional, Default: null) The object version of the deployment package"
type = string
nullable = true
default = null
}
variable "layers" {
description = "(Optional, Default: []) List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function"
type = list(string)
nullable = false
default = []
}
variable "memory_size" {
description = "(Optional, Default: 128) Amount of memory in MB your Lambda Function can use at runtime"
type = number
nullable = false
default = 128
}
variable "timeout" {
description = "(Optional, Default: 3) Amount of time your Lambda Function has to run in seconds"
type = number
nullable = false
default = 3
}
variable "environment" {
description = "(Optional, Default: {}) A map of environment variables"
type = map(string)
nullable = false
default = {}
}
variable "vpc_config" {
description = "(Optional, Default: null) An object containing subnet and security group IDs for running in a VPC"
type = object({
subnet_ids = list(string)
security_group_ids = list(string)
})
nullable = true
default = null
}
variable "policy_arns" {
description = "(Optional, Default: []) A list of policy ARNs to attach to the lambda execution role"
type = list(string)
nullable = false
default = []
}
variable "log_retention_in_days" {
description = "(Optional, Default: 3) Specifies the number of days you want to retain log events"
type = number
nullable = false
default = 3
}
variable "iam_role_tags" {
description = "(Optional, Default: {}) A map of tags to apply to the IAM role"
type = map(string)
nullable = false
default = {}
}
variable "tags" {
description = "(Optional, Default: {}) A map of tags to apply to the lambda function"
type = map(string)
nullable = false
default = {}
}