diff --git a/main.tf b/main.tf index e142b26..4b70272 100644 --- a/main.tf +++ b/main.tf @@ -16,11 +16,7 @@ resource "aws_elasticache_replication_group" "default" { subnet_group_name = aws_elasticache_subnet_group.default.name automatic_failover_enabled = var.automatic_failover_enabled - - cluster_mode { - replicas_per_node_group = var.replicas_per_node_group - num_node_groups = var.node_groups - } - + replicas_per_node_group = var.replicas_per_node_group + num_cache_clusters = var.num_cache_clusters tags = var.tags } diff --git a/variables.tf b/variables.tf index 6e99d6d..da9e9f9 100644 --- a/variables.tf +++ b/variables.tf @@ -1,8 +1,8 @@ variable "namespace" { } -variable "node_groups" { - description = "Number of nodes groups to create in the" +variable "num_cache_clusters" { + description = "Number of cache cluster to create (will be support at version 1 or above)" default = 1 }