github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/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 description = "Our main group of subnets" 19 subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"] 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` - (Required) The description of the DB subnet group. 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