Amazon Relational Database Service
Command Line Interface Reference (API Version 2012-04-23)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

rds-create-db-subnet-group

Description

Creates a new DB Subnet Group.

Syntax

rds-create-db-subnet-group DBSubnetGroupName

-d (--db-subnet-group-description) value,

-s (--db-subnet-list) value, [value, ...]

[General Options]

Options

NameDescriptionRequired

DBSubnetGroupName

The name for the DB Subnet Group. This value is stored as a lowercase string.

This parameter can also be set using --db-subnet-group-name value

Type: String

Default: None

Constraints: Must contain visible characters only. Must contain no more than 255 alphanumeric characters or hyphens. Must not be default.

Example: --db-subnet-group-name mysubnetgroup

Yes

-d value

--db-subnet-group-description value

The description for the database subnet group.

Type: String

Default: None

Constraints: Must not exceed 255 characters.

Example: -d "This is my DB Subnet group"

Yes

-s value, value, ...

--db-subnet-list value, value, ...

A list of one or more subnets to add to this DB subnet group.

Type: String

Default: None

Constraints: Must be existing subnets.

Example: -s subnet1, subnet2

Yes

Output

The command returns the following information:

  • Name—DB Subnet Group name

  • Description—DB Subnet Group description

  • Status—The status of the DB Subnet Group.

  • Subnet Identifier— Subnet Group identifier

  • Subnet Availability Zone— The Subnet Availability Zone

  • Status—The status of the subnet

Examples

Create a Database Security Group

This example creates a new database security group.

PROMPT> rds-create-db-subnet-group --db-subnet-group-name mygroup --db-subnet-group-description "My Subnet Group" --db-subnet-list subnet1, subnet2, subnet3