diff --git a/README.md b/README.md index 1d5d4e5..5c9133f 100644 --- a/README.md +++ b/README.md @@ -119,13 +119,13 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.78 | +| [aws](#requirement\_aws) | >= 5.82 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.78 | +| [aws](#provider\_aws) | >= 5.82 | ## Modules @@ -162,6 +162,7 @@ No modules. | [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 | | [kms\_key\_arn](#input\_kms\_key\_arn) | ARN of the KMS key used to encrypt the cluster at rest | `string` | `null` | no | | [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 | +| [multi\_region\_cluster\_name](#input\_multi\_region\_cluster\_name) | The multi region cluster identifier if part of a multi region cluster | `string` | `null` | no | | [name](#input\_name) | Cluster name - also default name used on all resources if more specific resource names are not provided | `string` | `""` | no | | [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 | | [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 | diff --git a/examples/complete/README.md b/examples/complete/README.md index a3e9abe..8819970 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -26,14 +26,14 @@ Note that this example may create resources which will incur monetary charges on | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.78 | +| [aws](#requirement\_aws) | >= 5.82 | | [random](#requirement\_random) | >= 3.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.78 | +| [aws](#provider\_aws) | >= 5.82 | | [random](#provider\_random) | >= 3.0 | ## Modules diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index 428fd69..fdcf4dd 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.78" + version = ">= 5.82" } random = { source = "hashicorp/random" diff --git a/examples/valkey/README.md b/examples/valkey/README.md index bbd951b..2ec6daf 100644 --- a/examples/valkey/README.md +++ b/examples/valkey/README.md @@ -26,14 +26,14 @@ Note that this example may create resources which will incur monetary charges on | Name | Version | |------|---------| | [terraform](#requirement\_terraform) | >= 1.0 | -| [aws](#requirement\_aws) | >= 5.78 | +| [aws](#requirement\_aws) | >= 5.82 | | [random](#requirement\_random) | >= 3.0 | ## Providers | Name | Version | |------|---------| -| [aws](#provider\_aws) | >= 5.78 | +| [aws](#provider\_aws) | >= 5.82 | | [random](#provider\_random) | >= 3.0 | ## Modules diff --git a/examples/valkey/versions.tf b/examples/valkey/versions.tf index 428fd69..fdcf4dd 100644 --- a/examples/valkey/versions.tf +++ b/examples/valkey/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.78" + version = ">= 5.82" } random = { source = "hashicorp/random" diff --git a/main.tf b/main.tf index 2c655f1..b9186aa 100644 --- a/main.tf +++ b/main.tf @@ -29,6 +29,7 @@ resource "aws_memorydb_cluster" "this" { num_replicas_per_shard = var.num_replicas_per_shard parameter_group_name = local.parameter_group_name data_tiering = var.data_tiering + multi_region_cluster_name = var.multi_region_cluster_name acl_name = local.acl_name kms_key_arn = var.kms_key_arn diff --git a/variables.tf b/variables.tf index 56ce4d0..53653d1 100644 --- a/variables.tf +++ b/variables.tf @@ -140,6 +140,12 @@ variable "data_tiering" { default = null } +variable "multi_region_cluster_name" { + description = "The multi region cluster identifier if part of a multi region cluster" + type = string + default = null +} + ################################################################################ # User(s) ################################################################################ diff --git a/versions.tf b/versions.tf index 99c199f..bdfd597 100644 --- a/versions.tf +++ b/versions.tf @@ -4,7 +4,7 @@ terraform { required_providers { aws = { source = "hashicorp/aws" - version = ">= 5.78" + version = ">= 5.82" } } }