github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/aws/r/redshift_subnet_group.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_redshift_subnet_group"
     4  sidebar_current: "docs-aws-resource-redshift-subnet-group"
     5  description: |-
     6    Provides a Redshift Subnet Group resource.
     7  ---
     8  
     9  # aws\_redshift\_subnet\_group
    10  
    11  Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_vpc" "foo" {
    17  	cidr_block = "10.1.0.0/16"
    18  }
    19  
    20  resource "aws_subnet" "foo" {
    21  	cidr_block = "10.1.1.0/24"
    22  	availability_zone = "us-west-2a"
    23  	vpc_id = "${aws_vpc.foo.id}"
    24  	tags {
    25  		Name = "tf-dbsubnet-test-1"
    26  	}
    27  }
    28  
    29  resource "aws_subnet" "bar" {
    30  	cidr_block = "10.1.2.0/24"
    31  	availability_zone = "us-west-2b"
    32  	vpc_id = "${aws_vpc.foo.id}"
    33  	tags {
    34  		Name = "tf-dbsubnet-test-2"
    35  	}
    36  }
    37  
    38  resource "aws_redshift_subnet_group" "foo" {
    39  	name = "foo"
    40  	subnet_ids = ["${aws_subnet.foo.id}", "${aws_subnet.bar.id}"]
    41  }
    42  `
    43  ```
    44  
    45  ## Argument Reference
    46  
    47  The following arguments are supported:
    48  
    49  * `name` - (Required) The name of the Redshift Subnet group.
    50  * `description` - (Optional) The description of the Redshift Subnet group. Defaults to "Managed by Terraform".
    51  * `subnet_ids` - (Optional) An array of VPC subnet IDs..
    52  
    53  ## Attributes Reference
    54  
    55  The following attributes are exported:
    56  
    57  * `id` - The Redshift Subnet group ID.
    58