$ aws s3 ls
Could not connect to the endpoint URL: \"https://s3.us-east-1a.amazonaws.com/\"
What could be the problem?
Probably, there is something wrong with the default region while configuring aws. In your case, the URL says "https://s3.us-east-1a.amazonaws.com/"
In your command prompt,
aws configure, enter your keys, Now fix your region from us-east-1a to us-east-1.
Kindly check the syntax according to the CLI you are using. This will be helpful.