$ aws s3 ls Could not connect to the endpoint URL: \"https://s3.us-east-1a.amazonaws.com/\"
What could be the problem?
The solution to my problem was to run:
sudo aws configure
Enter your credentials and then run:
sudo aws s3 ls
A different solution was to make sure that the region in the .aws/config file is the same as the endpoints