AWS S3 CLI - Could not connect to the endpoint URL

$ aws s3 ls

Could not connect to the endpoint URL: "https://s3.us-east-1a.amazonaws.com/"

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

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

[default]
region=us-east-1a
...

Fix the region to region=us-east-1 and then the command will work correctlyget

相關文章
相關標籤/搜索