Use this data source to get information about an RDS subnet group.
data "aws_db_subnet_group" "database" {
name = "my-test-database-subnet-group"
}
This data source supports the following arguments:
name
- (Required) Name of the RDS database subnet group.This data source exports the following attributes in addition to the arguments above:
arn
- ARN for the DB subnet group.description
- Provides the description of the DB subnet group.status
- Provides the status of the DB subnet group.subnet_ids
- Contains a list of subnet identifiers.supported_network_types
- The network type of the DB subnet group.vpc_id
- Provides the VPC ID of the DB subnet group.