The issue is likely with the ECS Task’s connection to RDS; you should configure the database Security Group so the Task can access the database port, ensure the Task is in a subnet that can reach the RDS, and test the connection with a simple container.