-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
133 lines (104 loc) · 3.01 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
variable "name" {
description = "The name of the function- must be unique for each account region."
type = string
}
variable "description" {
description = "An optional description for the function."
type = string
default = ""
}
variable "memory_size" {
description = "How much memory to allocate to a function. CPU increases proportionally."
type = number
default = 128
}
variable "timeout" {
description = "The time in seconds after which the function will be killed."
type = number
default = 3
}
variable "reserved_concurrent_executions" {
description = "In general this should only be used for critical functions. https://docs.aws.amazon.com/lambda/latest/dg/configuration-concurrency.html."
type = number
default = null
}
variable "environment_variables" {
description = "An object containing environmental variables in key/value structure."
default = {}
}
variable "principal_services" {
description = "The list of services, besides the default lambda.amazonaws.com, which can directly trigger the Lambda. This is needed for things like Lambda@Edge, where Cloudfront needs access."
type = list(string)
default = []
}
variable "auto_deploy" {
description = "If enabled new code upgrades will get deployed by the reload lambda"
type = bool
default = true
}
variable "tags" {
description = "An object containing base tags for resources in this module."
default = {}
}
#
# Networking
#
variable "enable_networking" {
default = true
}
variable "vpc_id" {
description = "The VPC to launch the Lambda in."
type = string
default = null
}
variable "subnet_ids" {
description = "The subnets to launch the Lambda in."
type = list(string)
default = null
}
#
# Packaging
#
variable "use_image" {
description = "Use a container image instead of a file for the lambda."
type = bool
default = true
}
variable "image_uri" {
description = "The URI of the image."
type = string
default = null
}
# S3 Settings
variable "s3_bucket" {
description = "The bucket containing the function code."
type = string
default = null
}
variable "s3_key" {
description = "The key for the function code."
type = string
default = null
}
variable "s3_object_version" {
description = "The object version for the function code. Only used on versioned buckets."
type = string
default = null
}
# File Settings
variable "function_source" {
description = "A string to turn into a Lambda function. SHould only be used for small functions."
type = string
default = null
}
# S3 and File settings
variable "source_code_hash" {
description = "The optional source code hash of the lambda code (either locally or in a bucket) to force an upgrade."
type = string
default = null
}
variable "runtime" {
description = "The runtime to use if a file based package is used."
type = string
default = null
}