Skip to content
Advertisement

Exception in Boto3 – botocore.exceptions.EndpointConnectionError

When trying to connect to a database with this python code to test the connection.

JavaScript

I am getting this error thrown at me.

JavaScript

The strange part is that the connection was working earlier in the day and then at it stopped working the same thing happened to me yesterday at the same time so I am assuming it is a network configuration issue. This question is the only one that is similar the solution the original poster stated was to unset both HTTP_PROXY and HTTPS_PROXY which I attempted but it did not work.

Advertisement

Answer

You have configured AWS env incorrectly. Check your ~/.aws/config file. You must have configured it incorrectly as us-east-5 which is an invalid region. Change it to us-east-1. Or run aws configure command again and specify the correct region.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement