FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_elasticache_replication_group

Provides an ElastiCache Replication Group resource.

~> Note: We currently do not support passing a primary_cluster_id in order to create the Replication Group.

Example Usage

resource "aws_elasticache_replication_group" "bar" {
  replication_group_id          = "tf-replication-group-1"
  replication_group_description = "test description"
  node_type                     = "cache.m1.small"
  number_cache_clusters         = 2
  port                          = 6379
  parameter_group_name          = "default.redis2.8"
  availability_zones            = ["us-west-2a", "us-west-2b"]
  automatic_failover_enabled    = true
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

ElastiCache Replication Groups can be imported using the replication_group_id, e.g.

$ terraform import aws_elasticache_replication_group.my_replication_group replication-group-1

See the source of this document at Terraform.io