github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/docs/providers/aws/r/elasticache_cluster.html.markdown (about)

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