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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_subnet"
     4  sidebar_current: "docs-aws-resource-elasticache-subnet-group"
     5  description: |-
     6    Provides an VPC subnet resource.
     7  ---
     8  
     9  # aws\_elasticache\_subnet\_group
    10  
    11  Provides an ElastiCache Subnet Group resource.
    12  
    13  ~> **NOTE:** ElastiCache Subnet Groups are only for use when working with an
    14  ElastiCache cluster **inside** of a VPC. If you are on EC2 Classic, see the
    15  [ElastiCache Security Group resource](elasticache_security_group.html).
    16  
    17  ## Example Usage
    18  
    19  ```
    20  resource "aws_vpc" "foo" {
    21      cidr_block = "10.0.0.0/16"
    22      tags {
    23              Name = "tf-test"
    24      }
    25  }
    26  
    27  resource "aws_subnet" "foo" {
    28      vpc_id = "${aws_vpc.foo.id}"
    29      cidr_block = "10.0.0.0/24"
    30      availability_zone = "us-west-2a"
    31      tags {
    32              Name = "tf-test"
    33      }
    34  }
    35  
    36  resource "aws_elasticache_subnet_group" "bar" {
    37      name = "tf-test-cache-subnet"
    38      description = "tf-test-cache-subnet-group-descr"
    39      subnet_ids = ["${aws_subnet.foo.id}"]
    40  }
    41  ```
    42  
    43  ## Argument Reference
    44  
    45  The following arguments are supported:
    46  
    47  * `description` – (Required) Description for the cache subnet group
    48  * `name` – (Required) Name for the cache subnet group. This value is stored as 
    49  a lowercase string
    50  * `subnet_ids` – (Optional) List of VPC Subnet IDs for the cache subnet group
    51  
    52  ## Attributes Reference
    53  
    54  The following attributes are exported:
    55  
    56  * `description`
    57  * `name`
    58  * `subnet_ids`
    59