FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

aws_elasticache_cluster

Provides an ElastiCache Cluster resource.

Changes to a Cache Cluster can occur when you manually change a parameter, such as node_type, and are reflected in the next maintenance window. Because of this, Terraform may report a difference in its planning phase because a modification has not yet taken place. You can use the apply_immediately flag to instruct the service to apply the change immediately (see documentation below).

~> Note: using apply_immediately can result in a brief downtime as the server reboots. See the AWS Docs on Modifying an ElastiCache Cache Cluster for more information.

Example Usage

resource "aws_elasticache_cluster" "bar" {
    cluster_id = "cluster-example"
    engine = "memcached"
    node_type = "cache.t2.micro"
    port = 11211
    num_cache_nodes = 1
    parameter_group_name = "default.memcached1.4"
}

Argument Reference

The following arguments are supported:

~> NOTE: Snapshotting functionality is not compatible with t2 instance types.

Attributes Reference

The following attributes are exported:

Import

ElastiCache Clusters can be imported using the cluster_id, e.g.

$ terraform import aws_elasticache_cluster.my_cluster my_cluster

See the source of this document at Terraform.io