-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
114 lines (96 loc) · 2.76 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
variable "name" {
description = "A unique name for your Lambda Function."
type = string
}
variable "role_name" {
description = "A unique name for your Lambda Function Role."
type = string
}
variable "runtime" {
description = "The runtimes for your Lambda Function."
type = string
default = "nodejs10.x"
}
variable "handler" {
description = "The handler for your Lambda Function."
type = string
default = "index.handler"
}
variable "log_retention_in_days" {
description = "Specifies the number of days you want to retain log events in lambda function log group."
type = number
default = 90
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda Function can use at runtime."
type = number
default = 128
}
variable "timeout" {
description = "The amount of time your Lambda Function has to run in seconds."
type = number
default = 3
}
variable "environment" {
description = "A map that defines environment variables for the Lambda function."
type = map
default = { dummy = "_" }
}
variable "layers" {
description = "List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function."
type = list(string)
default = []
}
variable "schedule" {
description = "A cloud watch execution schedule for the Lambda function."
type = list(object({ name = string, schedule_expression = string, input = string }))
default = []
}
variable "apigateway_execution_arns" {
description = "The AWS API GW Execution ARNs which call this Lambda function."
type = list(string)
default = []
}
variable "subscribed_sns_topic_arns" {
description = "The SNS Topic ARNs which subscribe to this Lambda function."
type = list(string)
default = []
}
variable "subscribed_sqs_queue_arns" {
description = "The SQS Queue ARNs which subscribe to this Lambda function."
type = list(string)
default = []
}
variable "role_policy" {
description = "The policy for the Lambda role."
type = string
default = ""
}
variable "source_dir" {
description = "The function folder to be archived."
type = string
}
variable "output_dir" {
description = "The function folder for building purposes."
type = string
}
variable "builder_command" {
description = "Builder command."
type = string
default = ""
}
variable "builder_container" {
description = "Builder container."
type = string
default = ""
}
variable "monitor_errors" {
description = "Create a dedicated cloudwatch alarm to monitor for errors."
type = string
default = false
}
variable "on_error_sns_arn" {
description = ""
type = string
default = ""
}