github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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  
    20    tags {
    21      Name = "My DB subnet group"
    22    }
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) The name of the DB subnet group.
    31  * `description` - (Optional) The description of the DB subnet group. Defaults to "Managed by Terraform".
    32  * `subnet_ids` - (Required) A list of VPC subnet IDs.
    33  * `tags` - (Optional) A mapping of tags to assign to the resource.
    34  
    35  ## Attributes Reference
    36  
    37  The following attributes are exported:
    38  
    39  * `id` - The db subnet group name.
    40  * `arn` - The ARN of the db subnet group.
    41  
    42  
    43  ## Import
    44  
    45  DB Subnet groups can be imported using the `name`, e.g.
    46  
    47  ```
    48  $ terraform import aws_db_subnet_group.default production-subnet-group
    49  ```