【问题标题】:AWS S3 cli not working with endpoint urlsAWS S3 cli 不适用于端点 URL
【发布时间】:2021-08-10 01:48:13
【问题描述】:

我正在尝试使用芥末,但是当我指定 s3://my-wasabi-bucket 时,aws s3 cli 接缝会忽略 --enpoint-url

举例

aws s3 ls --endpoint-url=https://s3.wasabisys.com --profile wasabi

会列出我的芥末桶,但当我这样做时

aws s3 ls --endpoint-url=https://s3.wasabisys.com --profile wasabi s3://my-bucket

my-bucket 是上面列表中的存储桶,我得到了

Could not connect to the endpoint URL: "https://s3.us-central-1.amazonaws.com/my-bucket?list-type=2&prefix=&delimiter=%2F&encoding-type=url"

【问题讨论】:

  • 如果您使用--debug,它是否包含更多信息?作为一项实验,我尝试将该端点与 AWS 凭证(不是 Wasabi)一起使用。它导致来自 Wasabi(我认为)的 AuthorizationHeaderMalformed,因此 AWS CLI 将我发送到 AWS。因此,调试信息可能显示您想要的正在发生。

标签: amazon-web-services aws-cli wasabi


【解决方案1】:

看起来我使用了错误的端点 url,我的存储桶托管在芥末的 central-1 中,所以我需要使用 --endpoint-url=https://s3.us-central-1.wasabisys.com

【讨论】:

    猜你喜欢
    • 2022-12-17
    • 1970-01-01
    • 2014-10-26
    • 1970-01-01
    • 1970-01-01
    • 2021-04-11
    • 1970-01-01
    • 2020-01-18
    • 1970-01-01
    相关资源
    最近更新 更多