AWS S3 CLI - Could not connect to the endpoint URL

前端 未结 12 1231
情书的邮戳
情书的邮戳 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条回答
  •  Happy的楠姐
    2020-12-07 22:16

    Some AWS services are just available in specific regions that do not match your actual region. If this is the case you can override the standard setting by adding the region to your actual cli command.

    This might be a handy solution for people that do not want to change their default region in the config file. IF your general config file is not set: Please check the suggestions above.

    In this example the region is forced to eu-west-1 (e.g. Ireland):

    aws s3 ls --region=eu-west-1
    

    Tested and used with aws workmail to delete users:

    aws workmail delete-user --region=eu-west-1 --organization-id [org-id] --user-id [user-id]
    

    I derived the idea from this thread and it works perfect for me - so I wanted to share it. Hope it helps!

提交回复
热议问题