Connecting your AWS RDS to your AWS EC2

To secure your AWS RDS instance and prevent outside connections from connecting
to it, ensure that during the RDS creation, you’ve unchecked “Publicly
Available”.

  • Ensure the EC2 and RDS is in the same region and available zone
  • Ensure that the EC2 is in the same security group as the RDS