-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
80 lines (66 loc) · 1.71 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
# Cluster variables
variable "cluster_name" {
description = "Name for the Redis cluster"
type = string
}
variable "cluster_description" {
description = "Description for the Redis cluster"
type = string
}
variable "node_type" {
description = "Compute and memory size for each node"
type = string
}
variable "password" {
description = "Authentication password"
type = string
}
variable "port" {
description = "Port used for communication between clients and the cluster"
type = number
}
variable "enable_transit_encryption" {
description = "Enables communication with the cluster through SSL"
type = bool
default = true
}
variable "maintenance_window" {
description = "Weekly time range when maintenance happens"
type = string
default = "sun:05:00-sun:07:00"
}
variable "snapshot_window" {
description = "Daily time range when snapshots are taken"
type = string
default = "02:00-04:00"
}
variable "snapshot_retention_limit" {
description = "Number of days for which ElastiCache will retain snapshots"
type = number
default = 7
}
variable "number_of_shards" {
description = "Number of write nodes (shards) in the cluster"
type = number
}
variable "replicas_per_shard" {
description = "Number of read replicas per shard"
type = number
}
# Subnet group variables
variable "subnet_group_name" {
description = "Name for the subnet group"
type = string
}
variable "subnet_group_description" {
description = "Description for the subnet group"
type = string
}
variable "subnet_ids" {
description = "List of the subnet ids used to create the subnet group"
type = list(string)
}
variable "vpc_id" {
description = "ID of the VPC where the security group will be placed"
type = string
}