github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/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 --- 6 7 # aws\_db\_subnet\_group 8 9 Provides an RDS DB subnet group resource. 10 11 ## Example Usage 12 13 ``` 14 resource "aws_db_subnet_group" "default" { 15 name = "main" 16 description = "Our main group of subnets" 17 subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"] 18 } 19 ``` 20 21 ## Argument Reference 22 23 The following arguments are supported: 24 25 * `name` - (Required) The name of the DB security group. 26 * `description` - (Required) The description of the DB security group. 27 * `subnet_ids` - (Required) A list of ingress rules. 28 29 ## Attributes Reference 30 31 The following attributes are exported: 32 33 * `id` - The db subnet group name. 34