How to make an RDS instance via Inbound Rules / SecurityGroups receive access from an EC2 instance?

3

In order for my RDS instance to receive access only from my EC2 instance via Security Group , I create the MySQL permission in Inbound Rules and use Private IP of the EC2 instance or the CIDR of my Subnet ?

Both works perfectly. Which one to use and why?

    
asked by anonymous 04.06.2015 / 08:34

1 answer

4

Use Subnet's CIDR because in case of replacing the EC2 instance, such as a repair case from a Snapshot, you do not have to change the rule.

    
04.06.2015 / 20:03