You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,12 +71,14 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [linkedin](http
70
71
|------|---------|
71
72
| terraform | >= 0.12.6 |
72
73
| aws | >= 2.41 |
74
+
| random | >= 3.0 |
73
75
74
76
## Providers
75
77
76
78
| Name | Version |
77
79
|------|---------|
78
80
| aws | >= 2.41 |
81
+
| random | >= 3.0 |
79
82
80
83
## Inputs
81
84
@@ -86,19 +89,22 @@ Module managed by [Marcin Cuber](https://github.com/marcincuber) [linkedin](http
86
89
| auth\_token | The password used to access a password protected server. Can be specified only if `transit_encryption_enabled = true`. |`string`|`""`| no |
87
90
| auto\_minor\_version\_upgrade | n/a |`string`|`true`| no |
88
91
| automatic\_failover\_enabled | Specifies whether a read-only replica will be automatically promoted to read/write primary if the existing primary fails. |`bool`|`true`| no |
92
+
| cluster\_mode\_enabled | Enable creation of a native redis cluster. |`bool`|`false`| no |
89
93
| description | The description of the all resources. |`string`|`"Managed by Terraform"`| no |
90
94
| engine\_version | The version number of the cache engine to be used for the cache clusters in this replication group. |`string`|`"5.0.6"`| no |
91
95
| family | The family of the ElastiCache parameter group. |`string`|`"redis5.0"`| no |
92
-
| ingress\_self | Specify whether the security group itself will be added as a source to the ingress rule. |`bool`|`false`| no |
93
96
| ingress\_cidr\_blocks | List of Ingress CIDR blocks. |`list(string)`|`[]`| no |
97
+
| ingress\_self | Specify whether the security group itself will be added as a source to the ingress rule. |`bool`|`false`| no |
94
98
| kms\_key\_id | The ARN of the key that you wish to use if encrypting at rest. If not supplied, uses service managed encryption. Can be specified only if `at_rest_encryption_enabled = true`|`string`|`""`| no |
95
99
| maintenance\_window | Specifies the weekly time range for when maintenance on the cache cluster is performed. |`string`|`""`| no |
96
100
| name\_prefix | The replication group identifier. This parameter is stored as a lowercase string. |`string`| n/a | yes |
97
101
| node\_type | The compute and memory capacity of the nodes in the node group. |`string`| n/a | yes |
98
102
| notification\_topic\_arn | An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example: `arn:aws:sns:us-east-1:012345678999:my_sns_topic`|`string`|`""`| no |
103
+
| num\_node\_groups | Required when `cluster_mode_enabled` is set to true. Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications. |`number`|`0`| no |
99
104
| number\_cache\_clusters | The number of cache clusters (primary and replicas) this replication group will have. |`number`| n/a | yes |
100
105
| parameter | A list of Redis parameters to apply. Note that parameters may differ from one Redis family to another | <pre>list(object({<br> name = string<br> value = string<br> }))</pre> |`[]`| no |
101
106
| port | The port number on which each of the cache nodes will accept connections. |`number`|`6379`| no |
107
+
| replicas\_per\_node\_group | Required when `cluster_mode_enabled` is set to true. Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource. |`number`|`0`| no |
102
108
| security\_group\_ids | List of Security Groups. |`list(string)`|`[]`| no |
103
109
| snapshot\_retention\_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. |`number`|`30`| no |
104
110
| snapshot\_window | The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. |`string`|`""`| no |
description="An Amazon Resource Name (ARN) of an SNS topic to send ElastiCache notifications to. Example: `arn:aws:sns:us-east-1:012345678999:my_sns_topic`"
146
146
}
147
+
148
+
variable"cluster_mode_enabled" {
149
+
type=bool
150
+
description="Enable creation of a native redis cluster."
151
+
default=false
152
+
}
153
+
154
+
variable"replicas_per_node_group" {
155
+
type=number
156
+
default=0
157
+
description="Required when `cluster_mode_enabled` is set to true. Specify the number of replica nodes in each node group. Valid values are 0 to 5. Changing this number will force a new resource."
158
+
}
159
+
160
+
variable"num_node_groups" {
161
+
type=number
162
+
default=0
163
+
description="Required when `cluster_mode_enabled` is set to true. Specify the number of node groups (shards) for this Redis replication group. Changing this number will trigger an online resizing operation before other settings modifications."
0 commit comments