Creates two shards, each with a primary and a single read replica using Redis Cluster Mode Enabled.

Terraform Template

resource "aws_elasticache_replication_group" "baz" {
  automatic_failover_enabled = true
  description = "example description"
  node_type = "cache.t2.small"
  num_node_groups = 2
  parameter_group_name = "default.redis3.2.cluster.on"
  port = 6379
  replicas_per_node_group = 1
  replication_group_id = "tf-redis-cluster"
}