forked from claranet/terraform-aws-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
116 lines (98 loc) · 2.56 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
variable "function_name" {
description = "A unique name for your Lambda function (and related IAM resources)"
type = string
}
variable "handler" {
description = "The function entrypoint in your code"
type = string
}
variable "build_script" {
description = "The path to the script which will compile a zip of the lambda function"
type = string
default = ""
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda function can use at runtime"
type = string
default = null
}
variable "reserved_concurrent_executions" {
description = "The amount of reserved concurrent executions for this Lambda function"
type = string
default = null
}
variable "runtime" {
description = "The runtime environment for the Lambda function"
type = string
}
variable "layers" {
description = "List of Lambda Layer Version ARNs to attach to your Lambda Function."
type = list(string)
default = null
}
variable "timeout" {
description = "The amount of time your Lambda function had to run in seconds"
type = string
default = 10
}
variable "source_path" {
description = "The source file or directory containing your Lambda source code"
type = string
}
variable "description" {
description = "Description of what your Lambda function does"
type = string
default = null
}
variable "environment" {
type = object({
variables = map(string)
})
default = null
}
variable "tracing_config" {
type = object({
mode = string
})
default = null
}
variable "dead_letter_config" {
type = object({
target_arn = string
})
default = null
}
variable "attach_dead_letter_config" {
description = "Set this to true if using the dead_letter_config variable"
type = string
default = false
}
variable "vpc_config" {
type = object({
security_group_ids = list(string)
subnet_ids = list(string)
})
default = null
}
variable "tags" {
description = "A mapping of tags"
type = map(string)
default = null
}
variable "policy" {
description = "An additional policy to attach to the Lambda function role"
type = object({
json = string
})
default = null
}
variable "cloudwatch_logs" {
description = "Set this to false to disable logging your Lambda output to CloudWatch Logs"
type = bool
default = true
}
variable "trusted_entities" {
description = "Lambda function additional trusted entities for assuming roles (trust relationship)"
type = list(string)
default = []
}