github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/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  	description = "foo description"
    41  	subnet_ids = ["${aws_subnet.foo.id}", "${aws_subnet.bar.id}"]
    42  }
    43  `
    44  ```
    45  
    46  ## Argument Reference
    47  
    48  The following arguments are supported:
    49  
    50  * `name` - (Required) The name of the Redshift Subnet group.
    51  * `description` - (Required) The description of the Redshift Subnet group.
    52  * `subnet_ids` - (Optional) An array of VPC subnet IDs..
    53  
    54  ## Attributes Reference
    55  
    56  The following attributes are exported:
    57  
    58  * `id` - The Redshift Subnet group ID.
    59