-
Notifications
You must be signed in to change notification settings - Fork 8
/
variables.tf
151 lines (128 loc) · 3.39 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
139
140
141
142
143
144
145
146
147
148
149
150
151
variable "image_uri" {
type = string
description = "Optional ECR image (for image based lambda)"
default = null
}
variable "image_config_command" {
type = list(string)
description = "Optional override of image's CMD"
default = []
}
variable "image_config_entry_point" {
type = list(string)
description = "Optional override of image's ENTRYPOINT"
default = []
}
variable "image_config_working_directory" {
type = string
description = "Optional override of image's WORKDIR"
default = null
}
variable "s3_bucket" {
type = string
description = "The name of the bucket containing your uploaded Lambda deployment package."
default = null
}
variable "s3_key" {
type = string
description = "The s3 key for your Lambda deployment package."
default = null
}
variable "function_name" {
type = string
description = "The name of the Lambda function."
}
variable "handler" {
type = string
description = "The function within your code that Lambda calls to begin execution."
default = null
}
variable "runtime" {
type = string
description = "The runtime environment for the Lambda function you are uploading."
default = null
}
variable "subnet_ids" {
type = list(string)
description = "The VPC subnets in which the Lambda runs."
default = []
}
variable "security_group_ids" {
type = list(string)
description = "The VPC security groups assigned to the Lambda."
default = null
}
variable "datadog_log_subscription_arn" {
type = string
description = "Log subscription arn for shipping logs to datadog"
default = ""
}
variable "lambda_role_policy" {
type = string
description = "The Lambda IAM Role Policy."
default = <<END
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:CreateLogGroup",
"logs:CreateLogStream",
"logs:PutLogEvents"
],
"Resource": "arn:aws:logs:*:*:*"
}
]
}
END
}
variable "timeout" {
type = number
description = "The maximum time in seconds that the Lambda can run for."
default = 3
}
variable "memory_size" {
type = number
description = "Amount of memory in MB your Lambda Function can use at runtime."
default = 128
}
variable "lambda_env" {
description = "Environment parameters passed to the Lambda function."
type = map(string)
default = {}
}
variable "log_subscription_filter" {
type = string
description = "Subscription filter to filter logs sent to datadog"
default = ""
}
variable "reserved_concurrent_executions" {
type = number
description = "Reserved concurrent executions for this Lambda"
default = -1
}
variable "tags" {
description = "A mapping of tags to assign to this lambda function."
type = map(string)
default = {}
}
variable "layers" {
type = list(string)
description = "ARNs of the layers to attach to the lambda function in order"
default = []
}
variable "architectures" {
type = list(string)
description = "Lambda architectures to support."
default = ["x86_64"]
}
variable "use_default_security_group" {
type = bool
description = "Use default security group"
default = false
}
variable "vpc_id" {
type = string
description = "The VPC ID in which the Lambda runs."
default = null
}