O'Reilly logo

Cloud Security Automation by Prashant Priyam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using security groups

RDS has its scope bounded to VPC. We use a security group for database security to control the traffic.

RDS can be associated with the database (DB) security group to control open public traffic, and associated with the VPC security group when RDS is used inside the VPC and EC2 security group.

In the DB security group, you need to specify the ports, while in VPC security you need to specify the port and IPs from which traffic will come to RDS instances.

You can define the security group from your AWS VPC console and associate it while creating a DB instance:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required