-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
61 lines (54 loc) · 2.25 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
variable "service_version" {
default = "v1.0.0"
type = string
description = "The version of the service"
}
variable "service_domain" {
type = string
description = "The 1st level of logical grouping of the service, e.g. 'api', 'web', 'db', etc."
}
variable "service_name" {
type = string
description = "The 2nd level of logical grouping of the service, e.g. 'my-api', 'my-web', 'my-db', etc."
}
variable "service_environment" {
type = string
description = "The 3rd level of logical grouping of the service, e.g. 'dev', 'test', 'prod', etc."
}
variable "parameter_store_list" {
type = list(string)
default = []
description = <<EOF
The list of parameter store keys to be used for the service, e.g.
<pre>[<br /> "datadog-api-key",<br /> "datadog-app-key",<br /> "sentry-dsn",<br /> "sentry-environment"<br />]</pre>
EOF
}
variable "dynamodb_table_list" {
type = list(object({
name = string,
key = string,
range_key = optional(string),
}))
default = []
description = <<EOF
The list of dynamodb tables to be used for the service, e.g.
<pre>[<br /> {<br /> "name": "booking",<br /> "key": "id"<br /> },<br /> {<br /> "name": "flight",<br /> "key": "id"<br /> },<br /> {<br /> "name": "transaction",<br /> "key": "booking_id",<br /> "range_key": "flight_id"<br /> }<br />]</pre>
EOF
}
variable "lambda_function_configuration" {
type = map(object({
lambda_memory_size = optional(number),
lambda_timeout = optional(number),
schedule_expression = optional(string),
}))
default = {}
description = <<EOF
The custom configuration for the Lambda Function, e.g.
<pre>{<br /> "booking-create": {<br /> "lambda_memory_size": 1024,<br /> "lambda_timeout": 300<br /> }<br />}</pre>
EOF
}
variable "default_tags" {
type = map(string)
default = {}
description = "The default tags for the service"
}