ECS Load balancer DNS unable to access privately hosted RDS MSSQL

0

Hello all,

We've privately accessible RDS MSSQL instance with ECS Fargate container that access this DB. ECS task public IP connects with DB successfully when we use public IP on browser URL. However, it fails when we configure application load balancer with ECS service and tries to access DB using ALB DNS domain name URL.

Could you pls suggest if I miss to configure any other steps and why it fails please Thanks.

  • Can you provide configuration details. Actual error that you see.

1 Answer
0

There could be a few reasons why your application load balancer (ALB) is not able to connect to the RDS MSSQL instance when accessed using the ALB DNS domain name URL. Here are a few things to check:

Security group settings: Make sure that the security group associated with the RDS MSSQL instance allows incoming traffic from the security group associated with the ECS Fargate container or the security group associated with the ALB.

VPC settings: Ensure that the RDS MSSQL instance and the ECS Fargate container are in the same VPC and that they are able to communicate with each other. Also, check that the VPC has the correct routing table settings to allow communication between the RDS MSSQL instance and the ECS Fargate container.

Network ACLs: Check if you have any Network ACLs that are blocking traffic between the ECS Fargate container and the RDS MSSQL instance.

DNS resolution: Make sure that the DNS resolution is set up correctly for the ALB DNS domain name URL and it is pointing to the correct IP address.

Application settings: Ensure that the application settings within the ECS Fargate container are configured correctly to connect to the RDS MSSQL instance using the ALB DNS domain name URL.

By checking these items one by one, you should be able to identify the issue causing the connection failure and take the necessary steps to resolve it

profile picture
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions