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-security-group

Description

Creates a new DB Security Group.

Syntax

rds-create-db-security-group DBSecurityGroupName

-d (--db-security-group-description) value

-v (---ec2-vpc-id)value

[General Options]

Options

NameDescriptionRequired

DBSecurityGroupName

The name for the DB Security Group. This value is store as a lowercase string.

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-security-group-name mysecuritygroup

Yes

-d value

--db-security-group-description value

The description for the database security group.

Type: String

Default: None

Constraints: Must not exceed 255 characters.

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

Yes

-v value

--ec2-vpc-id value

The identifier of an Amazon Virtual Private Cloud (VPC). This should only be specified when createing a DB Security Group for a VPC.

Type: String

Default: None

Constraints: Must be the identifier of an existing VPC.

Yes

Output

The command returns the following information:

  • Name—DB Security Group name

  • Description—DB Security Group description

  • VpcId—Identifier of the VPC to which this DB Security Group belongs

  • EC2 Group Name—EC2 security group name

  • EC2 Owner ID—EC2 security group owner

  • Status—Status of authorization. Valid values: authorizing | authorized | revoking

  • IP Range—CIDR range for the security group

Examples

Create a Database Security Group

This example creates a new database security group.

PROMPT> rds-create-db-security-group --db-security-group-name mygroup --db-security-group-description "My Security Group"