-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
90 lines (75 loc) · 2.44 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
variable "enabled" {
description = "Enables/Disables this module"
type = bool
}
variable "prefix" {
description = "Prefix all resources with this string"
type = string
default = "tf-"
}
variable "tags" {
description = "The tags to be added to all the resources"
type = map(string)
default = {}
}
variable "security_group_id" {
description = "ID of the security group to auto update"
type = string
}
variable "memory_size" {
description = "Amount of memory in MB your Lambda Function can use at runtime. Defaults to 128"
type = number
default = 128
}
variable "reserved_concurrent_executions" {
description = "The 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 -1"
type = number
default = -1
}
variable "timeout" {
description = "The amount of time your Lambda Function has to run in seconds. Defaults to 10"
type = number
default = 10
}
variable "log_group_retention_in_days" {
description = "Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire."
type = number
default = 7
}
variable "log_group_namespace" {
description = "Namespace of the log group"
type = string
default = "/aws/lambda/"
}
variable "lambda_function_name" {
description = "A unique name for your Lambda Function"
type = string
}
variable "lambda_tags" {
description = "The tags to be added to the lambda function only"
type = map(string)
default = {}
}
variable "vpc_subnet_ids" {
description = "List of subnet ids"
type = list(string)
default = null
}
variable "vpc_security_group_ids" {
description = "List of security group ids"
type = list(string)
default = null
}
variable "autoscaling_group_name" {
description = "Autoscaling Group name"
type = string
}
variable "cloudwatch_event_rule_name" {
description = "Name of the cloudwatch event rule"
type = string
}
variable "lifecycle_hook_heartbeat_timeout" {
description = "Heartbeat timeout for the lifecycle hook"
type = number
default = 3600
}