-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
95 lines (79 loc) · 2.29 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
variable "name" {
type = string
description = "The replication group identifier. This parameter is stored as a lowercase string"
}
variable "node_type" {
type = string
description = "The instance class to be used. See AWS documentation for information on supported node types"
}
variable "redis_version" {
description = "Redis release version. See AWS documentation for information"
type = string
default = "6.x"
}
variable "family" {
description = "Redis release parameter group version. See AWS documentation for information"
type = string
default = "redis6.x"
}
variable "multi_az" {
description = "Enable multi-az replication"
type = bool
default = true
}
variable "auth_token" {
type = string
default = null
}
variable "vpc" {
description = "VPC ID"
type = string
}
variable "subnets" {
description = "List with subnet ID's to create a subnet group"
type = list
}
variable "cluster_mode" {
description = "Create a native Redis cluster"
type = bool
default = true
}
variable "shards" {
description = "Number of node groups (shards) for this Redis"
type = number
default = 1
}
variable "replicas_per_shard" {
description = "Number of replica nodes in each node group. Valid values are 0 to 5"
type = number
default = 2
}
variable "port" {
description = "The port number on which each of the cache nodes will accept connections."
type = number
default = 6379
}
variable "kms_key" {
description = "The ARN of the key that you wish to use if encrypting at rest"
type = string
default = ""
}
variable "automatic_failover_enabled" {
description = "Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails"
type = bool
default = true
}
variable "cidrs_to_allow" {
description = "A list with CIDR's to enable on ingress and egress"
type = list
default = []
}
variable "security_groups_to_allow" {
description = "A list with security group ID's to enable on ingress and egress"
type = list
default = []
}
variable "tags" {
type = map(any)
default = {}
}