-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvariables.tf
108 lines (91 loc) · 2.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
# ------------------------------------------------------------------------------
# Variables
# ------------------------------------------------------------------------------
variable "name_prefix" {
description = "A prefix used for naming resources."
type = string
}
variable "policy" {
description = "A policy document for the lambda execution role."
type = string
}
variable "filename" {
description = "The path to the function's deployment package within the local filesystem."
type = string
default = null
}
variable "s3_bucket" {
description = "The bucket where the lambda function is uploaded."
type = string
default = null
}
variable "s3_key" {
description = "The s3 key for the Lambda artifact."
type = string
default = null
}
variable "s3_object_version" {
description = "The object version containing the function's deployment package. Conflicts with filename."
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 "runtime" {
description = "Lambda runtime. Defaults to Go 1.x."
type = string
default = "go1.x"
}
variable "handler" {
description = "The function entrypoint in your code."
type = string
default = "main"
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda Function can use at runtime."
type = number
default = 128
}
variable "timeout" {
description = "The amount of time your Lambda Function has to run in seconds."
type = number
default = 300
}
variable "reserved_concurrent_executions" {
description = "The amount of reserved concurrent executions for this lambda function. A value of 0 disables lambda from being triggered and -1 removes any concurrency limitations. Defaults to Unreserved Concurrency Limits -1"
type = number
default = -1
}
variable "vpc_id" {
description = "The VPC ID."
type = string
default = ""
}
variable "subnet_ids" {
description = "A list of subnet IDs associated with the Lambda function."
type = list(string)
default = []
}
variable "environment" {
description = "A map that defines environment variables for the Lambda function."
type = map(string)
default = {}
}
variable "publish" {
description = "Whether to publish creation/change as new Lambda Function Version. Defaults to false."
type = bool
default = false
}
variable "layers" {
description = "A list of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
type = list(string)
default = []
}
variable "tags" {
description = "A map of tags (key-value pairs) passed to resources."
type = map(string)
default = {}
}