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

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_db_subnet_group"
     4  sidebar_current: "docs-aws-resource-db-subnet-group"
     5  description: |-
     6    Provides an RDS DB subnet group resource.
     7  ---
     8  
     9  # aws\_db\_subnet\_group
    10  
    11  Provides an RDS DB subnet group resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_db_subnet_group" "default" {
    17      name = "main"
    18      subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
    19      tags {
    20          Name = "My DB subnet group"
    21      }
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `name` - (Required) The name of the DB subnet group.
    30  * `description` - (Optional) The description of the DB subnet group. Defaults to "Managed by Terraform".
    31  * `subnet_ids` - (Required) A list of VPC subnet IDs.
    32  * `tags` - (Optional) A mapping of tags to assign to the resource.
    33  
    34  ## Attributes Reference
    35  
    36  The following attributes are exported:
    37  
    38  * `id` - The db subnet group name.
    39  * `arn` - The ARN of the db subnet group.
    40