Skip to content

Commit 1a7c7ce

Browse files
authored
feat: Support Multi Region Cluster Name argument (#12)
1 parent 42be407 commit 1a7c7ce

File tree

8 files changed

+17
-9
lines changed

8 files changed

+17
-9
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module
119119
| Name | Version |
120120
|------|---------|
121121
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
122-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.78 |
122+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.82 |
123123

124124
## Providers
125125

126126
| Name | Version |
127127
|------|---------|
128-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.78 |
128+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.82 |
129129

130130
## Modules
131131

@@ -162,6 +162,7 @@ No modules.
162162
| <a name="input_final_snapshot_name"></a> [final\_snapshot\_name](#input\_final\_snapshot\_name) | Name of the final cluster snapshot to be created when this resource is deleted. If omitted, no final snapshot will be made | `string` | `null` | no |
163163
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | ARN of the KMS key used to encrypt the cluster at rest | `string` | `null` | no |
164164
| <a name="input_maintenance_window"></a> [maintenance\_window](#input\_maintenance\_window) | Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format `ddd:hh24:mi-ddd:hh24:mi` | `string` | `null` | no |
165+
| <a name="input_multi_region_cluster_name"></a> [multi\_region\_cluster\_name](#input\_multi\_region\_cluster\_name) | The multi region cluster identifier if part of a multi region cluster | `string` | `null` | no |
165166
| <a name="input_name"></a> [name](#input\_name) | Cluster name - also default name used on all resources if more specific resource names are not provided | `string` | `""` | no |
166167
| <a name="input_node_type"></a> [node\_type](#input\_node\_type) | The compute and memory capacity of the nodes in the cluster. See AWS documentation on [supported node types](https://docs.aws.amazon.com/memorydb/latest/devguide/nodes.supportedtypes.html) as well as [vertical scaling](https://docs.aws.amazon.com/memorydb/latest/devguide/cluster-vertical-scaling.html) | `string` | `null` | no |
167168
| <a name="input_num_replicas_per_shard"></a> [num\_replicas\_per\_shard](#input\_num\_replicas\_per\_shard) | The number of replicas to apply to each shard, up to a maximum of 5. Defaults to `1` (i.e. 2 nodes per shard) | `number` | `null` | no |

examples/complete/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Note that this example may create resources which will incur monetary charges on
2626
| Name | Version |
2727
|------|---------|
2828
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
29-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.78 |
29+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.82 |
3030
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.0 |
3131

3232
## Providers
3333

3434
| Name | Version |
3535
|------|---------|
36-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.78 |
36+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.82 |
3737
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.0 |
3838

3939
## Modules

examples/complete/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.78"
7+
version = ">= 5.82"
88
}
99
random = {
1010
source = "hashicorp/random"

examples/valkey/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Note that this example may create resources which will incur monetary charges on
2626
| Name | Version |
2727
|------|---------|
2828
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
29-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.78 |
29+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.82 |
3030
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.0 |
3131

3232
## Providers
3333

3434
| Name | Version |
3535
|------|---------|
36-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.78 |
36+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.82 |
3737
| <a name="provider_random"></a> [random](#provider\_random) | >= 3.0 |
3838

3939
## Modules

examples/valkey/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.78"
7+
version = ">= 5.82"
88
}
99
random = {
1010
source = "hashicorp/random"

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ resource "aws_memorydb_cluster" "this" {
2929
num_replicas_per_shard = var.num_replicas_per_shard
3030
parameter_group_name = local.parameter_group_name
3131
data_tiering = var.data_tiering
32+
multi_region_cluster_name = var.multi_region_cluster_name
3233

3334
acl_name = local.acl_name
3435
kms_key_arn = var.kms_key_arn

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ variable "data_tiering" {
140140
default = null
141141
}
142142

143+
variable "multi_region_cluster_name" {
144+
description = "The multi region cluster identifier if part of a multi region cluster"
145+
type = string
146+
default = null
147+
}
148+
143149
################################################################################
144150
# User(s)
145151
################################################################################

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 5.78"
7+
version = ">= 5.82"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)