AWS::RDS::DBSecurityGroup Ingress - AWS CloudFormation (original) (raw)
The Ingress
property type specifies an individual ingress rule within anAWS::RDS::DBSecurityGroup
resource.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{
"CIDRIP" : String,
"EC2SecurityGroupId" : String,
"EC2SecurityGroupName" : String,
"EC2SecurityGroupOwnerId" : String
}
YAML
CIDRIP: String
EC2SecurityGroupId: String
EC2SecurityGroupName: String
EC2SecurityGroupOwnerId: String
Properties
CIDRIP
The IP range to authorize.
Required: No
Type: String
Update requires: No interruption
EC2SecurityGroupId
Id of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId
must be provided. Otherwise, EC2SecurityGroupOwnerId
and either EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Required: No
Type: String
Update requires: No interruption
EC2SecurityGroupName
Name of the EC2 security group to authorize. For VPC DB security groups, EC2SecurityGroupId
must be provided. Otherwise, EC2SecurityGroupOwnerId
and either EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Required: No
Type: String
Update requires: No interruption
EC2SecurityGroupOwnerId
AWS account number of the owner of the EC2 security group specified in the EC2SecurityGroupName
parameter. The AWS access key ID isn't an acceptable value. For VPC DB security groups, EC2SecurityGroupId
must be provided. Otherwise, EC2SecurityGroupOwnerId
and either EC2SecurityGroupName
or EC2SecurityGroupId
must be provided.
Required: No
Type: String
Update requires: No interruption
Examples
Specifying an ingress rule
The following example specifies two security group ingress rules.
JSON
"DBSecurityGroupIngress":[
{
"EC2SecurityGroupId":"sg-b0ff1111",
"EC2SecurityGroupOwnerId":"111122223333"
},
{
"EC2SecurityGroupId":"sg-ffd722222",
"EC2SecurityGroupOwnerId":"111122223333"
}
]
YAML
DBSecurityGroupIngress:
- EC2SecurityGroupId: sg-b0ff1111
EC2SecurityGroupOwnerId: '111122223333'
- EC2SecurityGroupId: sg-ffd722222
EC2SecurityGroupOwnerId: '111122223333'