AWS S3 CLI - Could not connect to the endpoint URL

前端 未结 12 1220
情书的邮戳
情书的邮戳 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:12

    You should specify the region in your CLI script, rather than rely on default region specified using aws configure (as the current most popular answer asserts). Another answer alluded to that, but the syntax is wrong if you're using CLI via AWS Tools for Powershell.

    This example forces region to us-west-2 (Northern California), PowerShell syntax:

    aws s3 ls --region us-west-2
    

提交回复
热议问题