gpt4 book ai didi

amazon-web-services - AWS Cli 与非 DNS 兼容存储桶同步

转载 作者:行者123 更新时间:2023-12-01 00:35:23 25 4
gpt4 key购买 nike

有什么方法可以使用 AWS 命令​​行将本地文件夹与包含句点“.”的存储桶同步?

如果我这样做:

aws s3 sync local_folder/ s3://files.domain.com/backup

我收到此错误:

fatal error: Bucket named files.domain.com is not DNS compatible. Virtual hosted-style addressing cannot be used. The addressing style can be configured by removing the addressing_style value or setting that value to 'path' or 'auto' in the AWS Config file or in the botocore.client.Config object.



我已经尝试删除或更改 addressing_style AWS 配置中的值,但不起作用。我不知道如何在 botocore 上进行更改。

AWS 配置
[default]
output = json
region = us-west-1
s3 =
max_concurrent_requests = 100
max_queue_size = 10000
multipart_threshold = 64MB
multipart_chunksize = 16MB
use_accelerate_endpoint = true

最佳答案

看来我发现了问题。

use_accelerate_endpoint = true

名称中带有句点 (.) 的存储桶不支持传输加速: Amazon S3 Transfer Acceleration .

这意味着 use_accelerate_endpoint必须删除或设置为 false。否则,它将无法工作并抛出该错误,使您认为它可以使用正确的设置工作,而实际上您需要删除该标志。

关于amazon-web-services - AWS Cli 与非 DNS 兼容存储桶同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41683589/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com