Skip to content

Commit

Permalink
remove deprecated cluster mode param
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehdikarimian committed Apr 23, 2022
1 parent c47ced2 commit 8283753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -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
}

Expand Down

0 comments on commit 8283753

Please sign in to comment.