| Did this page help you? Yes No Tell us about it... |
Authorizes network ingress for an Amazon EC2 security group or an IP address range.
![]() | Note |
|---|---|
You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB Instance in another. |
rds-authorize-db-security-group-ingress
DBSecurityGroupName
[-s
(--ec2-security-group-id) ] value
[-g
(--ec2-security-group-name) value ] [-i
(--cidr-ip) value ] [-o
(--ec2-security-group-owner) value ] [General
Options]
| Name | Description | Required | |||
|---|---|---|---|---|---|
|
|
The name of the Amazon RDS security group. This can also be
passed as a named parameter using Type: String Default: None Example: |
Yes | |||
|
|
Identifier of the EC2 Security Group to authorize. Type: String Default: None Constraints: This parameter must be specified if the DB Security Group is for a VPC. Example: |
No | |||
|
|
The name of the EC2 security group. Type: String Default: None Constraints: This parameter must be specified if the
Example:
|
No | |||
|
|
The AWS account number of the owner of the EC2 security group. Type: String Default: None Constraints: This parameter must be specified if the
Example: |
No | |||
|
|
The IP range to allow access. Type: String Constraints: Must be a valid Classless Inter-Domain Routing (CIDR) range, in the format ddd.ddd.ddd.ddd/dd. For more information, see CIDR Notation. Default: None Constraints: This parameter must not
be specified if the
Example:
|
No |
The command returns a table with the following information:
NameSecurity group name.
DescriptionSecurity group description.
EC2 Group NameName of the EC2 security group./
EC2 Group IdIdentifier of the EC2 security group./
EC2 Owner IDOwner of the EC2 security group.
IP RangeCIDR range for the authorized Amazon RDS security group.
StatusStatus of the authorization.
This example authorizes access to a named Amazon EC2 security group.
PROMPT> rds-authorize-db-security-group-ingress Default --ec2-security-group-name mainServerGrp --ec2-security-group-owner-id 123445677890
This example authorizes access to a CIDR range.
PROMPT> rds-authorize-db-security-group-ingress Default --cidr-ip 192.168.100.100/32