Update AWS CLI

Could not connect to the endpoint URL: “”

You probably have something wrong in your default profile for the default region.

Check your file at ~/.aws/config, you have something like

Fix the region to region=us-east-1 or whichever the region you’re defaulting to, and it will work


Frédéric Henri via StackOverflow