github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_elasticache_cluster"
     4  sidebar_current: "docs-aws-resource-elasticache-cluster"
     5  description: |-
     6    Provides an VPC subnet resource.
     7  ---
     8  
     9  # aws\_elasticache\_cluster
    10  
    11  Provides an ElastiCache Cluster resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_elasticache_cluster" "bar" {
    17      cluster_id = "cluster-example"
    18      engine = "memcached"
    19      node_type = "cache.m1.small"
    20      port = 11211
    21      num_cache_nodes = 1
    22      parameter_group_name = "default.memcached1.4"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `cluster_id` – (Required) Group identifier. This parameter is stored as a
    31  lowercase string
    32  
    33  * `engine` – (Required) Name of the cache engine to be used for this cache cluster.
    34   Valid values for this parameter are `memcached` or `redis`
    35  
    36  * `engine_version` – (Optional) Version number of the cache engine to be used.
    37  See [Selecting a Cache Engine and Version](http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/SelectEngine.html)
    38  in the AWS Documentation center for supported versions
    39  
    40  * `node_type` – (Required) The compute and memory capacity of the nodes. See
    41  [Available Cache Node Types](http://aws.amazon.com/elasticache/details#Available_Cache_Node_Types) for
    42  supported node types
    43  
    44  * `num_cache_nodes` – (Required) The initial number of cache nodes that the
    45  cache cluster will have. For Redis, this value must be 1. For Memcache, this
    46  value must be between 1 and 20
    47  
    48  * `parameter_group_name` – (Required) Name of the parameter group to associate
    49  with this cache cluster
    50  
    51  * `port` – (Required) The port number on which each of the cache nodes will
    52  accept connections. For Memcache the default is 11211, and for Redis the default port is 6379.
    53  
    54  * `subnet_group_name` – (Optional, VPC only) Name of the subnet group to be used
    55  for the cache cluster.
    56  
    57  * `security_group_names` – (Optional, EC2 Classic only) List of security group
    58  names to associate with this cache cluster
    59  
    60  * `security_group_ids` – (Optional, VPC only) One or more VPC security groups associated
    61   with the cache cluster
    62  
    63  * `tags` - (Optional) A mapping of tags to assign to the resource.
    64  
    65  
    66  ## Attributes Reference
    67  
    68  The following attributes are exported:
    69  
    70  * `cluster_id`
    71  * `engine`
    72  * `engine_version`
    73  * `node_type`
    74  * `num_cache_nodes`
    75  * `parameter_group_name`
    76  * `port`
    77  * `subnet_group_name`
    78  * `security_group_names`
    79  * `security_group_ids`