Search code examples
amazon-web-servicesamazon-rdsaws-security-group

AWS Security group for RDS - Inbound rules


I created a MySQL instance in AWS RDS and selected the create new security group option which created a new security group as below

Inbound rule created with a specific allowed ip

This allows traffic from only the specified ip. In the public accessibility option I have selected yes. Now, I am able to connect to this database on my local computer. I am not able to understand the point of this security group inbound rule and where this ip in inbound rule is coming from?


Solution

  • This is your public IP (at least for now). /32 is from CIDR, means that this is only one ip in this network (SG work with CIDT, not just IP).

    So, RDS could be accessed only from you IP