forked from mcozd/terraform-aws-serverless-api-authorizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
64 lines (54 loc) · 1.57 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
variable "artifact_folder" {
type = string
description = "The folder where the built binaries of your authorizer resides."
default = "./.artifacts"
}
variable "name" {
type = string
description = "The name of your authorizer. This must match the name of the binary."
default = "authorizer"
}
variable "prefix" {
type = string
description = "Adds a prefix to the function name."
default = ""
}
variable "suffix" {
type = string
description = "Adds a suffix to the function name."
default = ""
}
variable "runtime" {
type = string
description = "The runtime that your code needs to run."
default = "provided.al2023"
}
variable "handler" {
type = string
description = "The name of the handler/function/entrypoint in your code to call when the function gets invoked."
default = ""
}
variable "memory" {
type = number
description = "The memory you wish to assign to the lambda function."
default = 128
}
variable "timeout" {
type = number
description = "The maximum amount of time (in seconds) your function is allowed to run."
default = 2
}
variable "environment_vars" {
type = map(string)
description = "Environment variables you want to set in the lambda environment."
default = {}
}
variable "type" {
type = string
description = "The type of authorizer that you want to create."
default = "TOKEN"
}
variable "api_id" {
type = string
description = "The id of your api where the authorizer should be registered."
}