I am setting up an infrastructure using Fargate and RDS for my web application.
Here are the basic details of infrastructure.
- Fargate and RDS are using same VPC and same Subnet
- We have an Application Load Balancer infront of Fargate
- Able to access container applications using LB url
Now the problem is, Fargate container application is not able to connect to RDS
Can somebody suggest how to configure security groups or other perimeters to allow containers to connect RDS.
If I change RDS SG configuration with RDS port and IP as 0.0.0.0/0 (Anywhere) container application is able to connect to RDS. But this we will not be able to do in UAT / PROD