Cannot connect to RDS SQL Server Database using Management Studio

For inbound rules, go to the VPC Security group of your database instance

In Inbound tab click modify

In column source change ip 0.0.0.0 by your IP by "My IP" or "Anywhere"


In my case I opened the VPC Security group associated with my database

enter image description here

In the EC2 Security groups dashboard I selected Edit Inbound Rules from the actions dropdown and chose edit inbound rules.

At first, I looked at the inbound rules and thought everything was OK since this was the current setup enter image description here

After all - if it was allowing all traffic, then what could possibly be wrong?

On a whim I added a rule for TCP port 1433. Ending up with this simple setup

enter image description here

Then it immediately started working for me.


Make sure it is publicly accessible, there is a radio button you have to check to make it publicly accessible.enter image description here

Also add MS SQL inbound rule in inbound tab.After making the change wait for sometime so that the settings are updated in the instance.


In my experience this was counter-intuitive. With the options I selected, all ports and IPs seemed to be open, but after editing the inbound and outbound rules in the security group to have MS SQL for anywhere, I was able to connect.