2015-05-08 18:27:43 +02:00
|
|
|
|
---
|
|
|
|
|
layout: "aws"
|
|
|
|
|
page_title: "AWS: aws_subnet"
|
|
|
|
|
sidebar_current: "docs-aws-resource-elasticache-cluster"
|
|
|
|
|
description: |-
|
|
|
|
|
Provides an VPC subnet resource.
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
# aws\_elasticache\_cluster
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
Provides an ElastiCache Cluster resource.
|
2015-05-08 18:27:43 +02:00
|
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
resource "aws_elasticache_cluster" "bar" {
|
|
|
|
|
cluster_id = "cluster-example"
|
|
|
|
|
engine = "memcached"
|
|
|
|
|
node_type = "cache.m1.small"
|
|
|
|
|
num_cache_nodes = 1
|
|
|
|
|
parameter_group_name = "default.memcached1.4"
|
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `cluster_id` – (Required) Group identifier. This parameter is stored as a
|
2015-05-08 18:27:43 +02:00
|
|
|
|
lowercase string
|
|
|
|
|
|
|
|
|
|
* `engine` – (Required) Name of the cache engine to be used for this cache cluster.
|
|
|
|
|
Valid values for this parameter are `memcached` or `redis`
|
|
|
|
|
|
|
|
|
|
* `engine_version` – (Optional) Version number of the cache engine to be used.
|
2015-05-14 05:23:37 +02:00
|
|
|
|
See [Selecting a Cache Engine and Version](http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html)
|
|
|
|
|
in the AWS Documentation center for supported versions
|
2015-05-08 18:27:43 +02:00
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `node_type` – (Required) The compute and memory capacity of the nodes. See
|
2015-05-08 18:27:43 +02:00
|
|
|
|
[Available Cache Node Types](http://aws.amazon.com/elasticache/details#Available_Cache_Node_Types) for
|
|
|
|
|
supported node types
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `num_cache_nodes` – (Required) The initial number of cache nodes that the
|
2015-05-08 18:27:43 +02:00
|
|
|
|
cache cluster will have. For Redis, this value must be 1. For Memcache, this
|
|
|
|
|
value must be between 1 and 20
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `parameter_group_name` – (Required) Name of the parameter group to associate
|
2015-05-08 18:27:43 +02:00
|
|
|
|
with this cache cluster
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `port` – (Optional) The port number on which each of the cache nodes will
|
2015-05-08 18:27:43 +02:00
|
|
|
|
accept connections. Default 11211.
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `subnet_group_name` – (Optional, VPC only) Name of the subnet group to be used
|
2015-05-08 18:27:43 +02:00
|
|
|
|
for the cache cluster.
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `security_group_names` – (Optional, EC2 Classic only) List of security group
|
2015-05-08 18:27:43 +02:00
|
|
|
|
names to associate with this cache cluster
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `security_group_ids` – (Optional, VPC only) One or more VPC security groups associated
|
2015-05-08 18:27:43 +02:00
|
|
|
|
with the cache cluster
|
|
|
|
|
|
2015-06-02 00:05:07 +02:00
|
|
|
|
* `tags` - (Optional) A mapping of tags to assign to the resource.
|
|
|
|
|
|
2015-05-08 18:27:43 +02:00
|
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `cluster_id`
|
|
|
|
|
* `engine`
|
2015-05-08 18:27:43 +02:00
|
|
|
|
* `engine_version`
|
|
|
|
|
* `node_type`
|
|
|
|
|
* `num_cache_nodes`
|
|
|
|
|
* `parameter_group_name`
|
2015-05-14 05:23:37 +02:00
|
|
|
|
* `port`
|
2015-05-08 18:27:43 +02:00
|
|
|
|
* `subnet_group_name`
|
|
|
|
|
* `security_group_names`
|
|
|
|
|
* `security_group_ids`
|