AWS S3 CLI - Could not connect to the endpoint URL

前端 未结 12 1244
情书的邮戳
情书的邮戳 2020-12-07 21:46
$ aws s3 ls

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

What could be the problem?

12条回答
  •  生来不讨喜
    2020-12-07 22:22

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

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

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

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

提交回复
热议问题