forked from cloudposse/terraform-aws-dynamodb-autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
83 lines (68 loc) · 1.84 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
variable "namespace" {
type = "string"
description = "Namespace (e.g. `eg` or `cp`)"
}
variable "stage" {
type = "string"
description = "Stage (e.g. `prod`, `dev`, `staging`, `infra`)"
}
variable "name" {
type = "string"
description = "Name (e.g. `app` or `cluster`)"
}
variable "delimiter" {
type = "string"
default = "-"
description = "Delimiter to be used between `namespace`, `stage`, `name` and `attributes`"
}
variable "attributes" {
type = "list"
default = []
description = "Additional attributes (e.g. `1`)"
}
variable "tags" {
type = "map"
default = {}
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)"
}
variable "dynamodb_table_name" {
type = "string"
description = "DynamoDB table name"
}
variable "dynamodb_table_arn" {
type = "string"
description = "DynamoDB table ARN"
}
variable "dynamodb_indexes" {
type = "list"
description = "List of DynamoDB indexes"
default = []
}
variable "autoscale_write_target" {
default = 50
description = "The target value for DynamoDB write autoscaling"
}
variable "autoscale_read_target" {
default = 50
description = "The target value for DynamoDB read autoscaling"
}
variable "autoscale_min_read_capacity" {
default = 5
description = "DynamoDB autoscaling min read capacity"
}
variable "autoscale_max_read_capacity" {
default = 20
description = "DynamoDB autoscaling max read capacity"
}
variable "autoscale_min_write_capacity" {
default = 5
description = "DynamoDB autoscaling min write capacity"
}
variable "autoscale_max_write_capacity" {
default = 20
description = "DynamoDB autoscaling max write capacity"
}
variable "enabled" {
description = "Set to false to prevent the module from creating any resources"
default = "true"
}