-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
124 lines (107 loc) · 3.72 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
115
116
117
118
119
120
121
122
123
124
variable "ddb_autoscaling_enabled" {
description = "Whether or not to enable autoscaling. See note in README about this setting"
type = bool
default = true
}
variable "ddb_autoscaling_read" {
description = "A map of read autoscaling settings. `max_capacity` is the only required key. See example in examples/autoscaling"
type = map(string)
default = null
}
variable "ddb_autoscaling_write" {
description = "A map of write autoscaling settings. `max_capacity` is the only required key. See example in examples/autoscaling"
type = map(string)
default = null
}
variable "ddb_billing_mode" {
type = string
default = "PROVISIONED"
description = "The billing mode for the DDB table"
}
variable "ddb_enabled" {
type = bool
description = "For creating a dynamodb table"
default = true
}
variable "ddb_read_capacity" {
description = "The number of read units for this table. If the billing_mode is PROVISIONED, this field should be greater than 0"
type = number
default = null
}
variable "ddb_schedule_scaling_read" {
description = "A map of read schedule scaling settings. See example in examples/autoscaling"
type = list(object({
schedule = string
min_capacity = number
max_capacity = number
}))
default = []
}
variable "ddb_schedule_scaling_write" {
description = "A map of write schedule scaling settings. See example in examples/autoscaling"
type = list(object({
schedule = string
min_capacity = number
max_capacity = number
}))
default = []
}
variable "ddb_write_capacity" {
description = "The number of write units for this table. If the billing_mode is PROVISIONED, this field should be greater than 0"
type = number
default = null
}
variable "label_orders" {
type = object({
ecs = optional(list(string), ["stage", "tenant", "name"])
iam = optional(list(string), ["environment", "stage", "tenant", "name", "attributes"]),
kvstore = optional(list(string), ["environment", "stage", "tenant", "name"])
})
default = {}
description = "Overrides the `labels_order` for the different labels to modify ID elements appear in the `id`"
}
variable "redis_cpu_size" {
type = number
default = 25
description = "The cpu size of the redis instance"
}
variable "redis_deployment_maximum_percent" {
type = number
description = "The upper limit of the number of tasks (as a percentage of `desired_count`) that can be running in a service during a deployment"
default = 100
}
variable "redis_deployment_minimum_healthy_percent" {
type = number
description = "The lower limit (as a percentage of `desired_count`) of the number of tasks that must remain running and healthy in a service during a deployment"
default = 0
}
variable "redis_enabled" {
type = bool
description = "For creating a redis service"
default = true
}
variable "redis_image_repository" {
type = string
description = "Redis image repository to use when use_redis is true"
default = "redis"
}
variable "redis_image_tag" {
type = string
description = "Redis image tag to use when use_redis is true"
default = "7-alpine"
}
variable "redis_maxmemory" {
type = number
default = 25
description = "The memory size of the redis instance"
}
variable "redis_maxmemory_policy" {
type = string
description = "When your Redis instance memory is full, and a new write comes in, Redis evicts keys to make room for the write based on your instance's maxmemory policy."
default = "allkeys-lru"
}
variable "redis_memory_size" {
type = number
default = 50
description = "The memory size of the ECS container"
}