-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables-lambda.tf
117 lines (99 loc) · 3.49 KB
/
variables-lambda.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
variable "lf_architecture" {
default = "arm64"
description = "Instruction set architecture for your Lambda function. Valid values are x86_64 or arm64. Mind the square brackets and quotes."
type = string
}
variable "lf_description" {
default = null
description = "Provide a description"
type = string
}
variable "lf_environment_vars" {
default = null
description = "A map of environment variables."
type = map(string)
}
variable "lf_handler" {
default = "bootstrap"
description = "Function entrypoint in your code (name of the executable for binaries."
type = string
}
variable "lf_invoke_mode" {
default = "BUFFERED"
description = "Determines how the Lambda function responds to an invocation. Valid values are BUFFERED and RESPONSE_STREAM."
type = string
validation {
condition = var.lf_invoke_mode == "RESPONSE_STREAM" || var.lf_invoke_mode == "BUFFERED"
error_message = "value MUST be either \"RESPONSE_STREAM\" or \"BUFFERED\""
}
}
variable "lf_log_retention_in_days" {
default = 14
description = "Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1096, 1827, 2192, 2557, 2922, 3288, 3653, and 0. If you select 0 they never expire."
type = number
}
variable "lf_policy_path" {
default = null
description = "Path to a IAM policy for the Lambda function."
type = string
}
variable "lf_role_arn" {
default = null
description = "ARN for the function to assume, this will be used instad of making a new role."
type = string
}
variable "lf_reserved_concurrent_executions" {
default = -1
description = "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."
type = string
}
variable "lf_runtime" {
default = "provided.al2"
description = "Identifier of the function's runtime. See https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime"
type = string
}
variable "lf_source_file" {
default = null
description = "a file to zip up for your Lambda. Works well apps that build to a single binary."
type = string
}
variable "lf_source_zip" {
default = "bootstrap.zip"
description = "Supply your own zip for he Lambda."
type = string
}
variable "lf_url_alias" {
default = null
description = ""
type = string
}
variable "lf_url_cors_allowed_headers" {
default = ["date", "keep-alive"]
description = "HTTP headers allowed."
type = list(string)
}
variable "lf_url_cors_allowed_methods" {
default = ["GET", "POST"]
description = "List of HTTP verbs allowed."
type = list(string)
}
variable "lf_url_cors_headers_to_expose" {
default = ["keep-alive", "date"]
description = "List of HTTP headers to expose in te response."
type = list(string)
}
variable "lf_url_cors_allowed_origins" {
default = ["*"]
description = "List of HTTP methods allowed."
type = list(string)
}
variable "lf_url_authorization_type" {
default = "NONE"
description = "Valid values are NONE and AWS_IAM."
type = string
}
variable "lf_url_cors_max_age" {
default = 0
description = "The maximum amount of time, in seconds, that web browsers can cache results of a preflight request. The maximum value is 86400."
type = number
}