-
Notifications
You must be signed in to change notification settings - Fork 6
/
variables.tf
110 lines (92 loc) · 2.9 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
variable "name" {
description = "The name of the Lambda; also used as the base name for its execution role"
type = string
}
variable "description" {
description = "Describes the Lambda's purpose"
type = string
default = "FIXME - use a real description"
}
variable "runtime" {
description = "The Lambda's runtime; see docs for allowed values"
type = string
}
variable "filename" {
description = "The name of a local deployment bundle; mutually exlusive with s3_bucket/s3_key"
type = string
default = null
}
variable "s3_bucket" {
description = "The name of the bucket holding the Lambda deployment bundle; mutually exclusive with filename"
type = string
default = null
}
variable "s3_key" {
description = "The key of a Lambda deployment bundle stored in S3; mutually exclusive with filename"
type = string
default = null
}
variable "s3_version" {
description = "The version identifier of the Lambda deployment bundle stored in S3; mutually exclusive with filename"
type = string
default = null
}
variable "source_code_hash" {
description = "A Base64-encoded 256-bit hash value used to determine whether the Lambda code should be updated"
type = string
default = null
}
variable "handler" {
description = "The fully qualified name of the Lambda's handler function"
type = string
}
variable "memory_size" {
description = "The amount of memory to assign to the Lambda"
type = number
default = 1024
}
variable "timeout" {
description = "The number of seconds that the Lambda is allowed to execute"
type = number
default = 60
}
variable "vpc_id" {
description = "If specified, the Lambda is deployed in this VPC; must also provide subnet_ids"
type = string
default = null
}
variable "subnet_ids" {
description = "The subnets where the Lambda should be deployed (must be within VPC identified by vpc_id)"
type = list(string)
default = null
}
variable "security_group_ids" {
description = "If specified, identifies a list of security groups that are attached to the Lambda in addition to the one created by this module"
type = list(string)
default = []
}
variable "layers" {
description = "The ARNs of layers to required by Lamba"
type = list(string)
default = null
}
variable "env" {
description = "Environment variable definitions"
type = map(string)
default = {}
}
variable "tags" {
description = "Tags that are applied to all resources"
type = map(string)
default = {}
}
variable "log_retention" {
description = "The number of days to retain execution logs; see docs for allowed values"
type = number
default = 30
}
variable "policy_statements" {
description = "An optional list of items to add to the Lambda's inline policy"
type = list
default = []
}