Hi. @Mutturaj Bali
Is it possible to isolate the problem?
- Does the problem occur with .NET2.2 on ECS?
- Does the problem occur with .NET6 on EC2?
- Does the problem occur with ".NET6 on ECS" to "MySQL on EC2"?
If you're communicating privately with RDS in an AWS VPC, private subnets are less of an issue in my experience.
If the ECS needs to communicate externally or communicate with other public AWS services and is canceled, you may configure a VPC endpoint, but it's a good idea to start with the above isolation.