FEATURES PRICING ABOUT DOCS LOGIN

aws_db_subnet_group

Provides an RDS DB subnet group resource.

Example Usage

resource "aws_db_subnet_group" "default" {
    name = "main"
    subnet_ids = ["${aws_subnet.frontend.id}", "${aws_subnet.backend.id}"]
    tags {
        Name = "My DB subnet group"
    }
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

DB Subnet groups can be imported using the name, e.g.

$ terraform import aws_db_subnet_group.default production-subnet-group

See the source of this document at Terraform.io

REQUEST A DEMO