-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
111 lines (89 loc) · 1.75 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
variable "aws_profile" {
type = string
default = "SBX"
}
variable "cumulus_lambda_role_arn" {
type = string
}
variable "cumulus_lambda_role_name" {
type = string
}
variable "env_variables" {
type = map(string)
default = {}
}
variable "security_group_ids" {
type = list(string)
default = null
}
variable "subnet_ids" {
type = list(string)
default = null
}
variable "layers" {
type = list(string)
default = []
}
variable "memory_size" {
description = "Lambda RAM limit"
default = 2048
}
variable "prefix" {
type = string
}
variable "region" {
type = string
default = "us-west-2"
}
variable "s3_bucket_name" {
type = string
}
variable "timeout" {
description = "Lambda function time-out"
default = 900
}
variable "early_return_threshold" {
description = "If the remaining execution time of the lambda goes below this an early return will be performed."
default = 30
}
# Sqlite Configuration
variable "sqlite_transaction_size" {
type = number
default = 100000
}
variable "sqlite_temp_store" {
type = number
default = 0
}
variable "sqlite_cache_size" {
type = number
default = (-1 * 64000)
}
# RDS Configuration
variable "db_identifier" {
type = string
default = "gdgdb"
}
variable "db_instance_class" {
type = string
default = "db.t3.micro"
}
variable "db_username" {
type = string
default = "gdgdbadmin"
}
variable "db_allocated_storage" {
type = number
default = 5
}
variable "db_type" {
type = string
validation {
condition = contains(["postgresql", "sqlite", "cumulus"], var.db_type)
error_message = "The variable db_type must be one of: postgresql, sqlite, or cumulus."
}
}
variable "cumulus_user_credentials_secret_arn" {
type = string
default = null
}