能够在 Mac 上无缝地设置从 S3 存储桶的拉取,但一直在 PC (Windows) 上遇到相同的过程。这是我所做的 - 在此过程中提供的任何帮助将不胜感激。
pip
安装了 awscli
aws configure
并输入正确的访问 key ID 和 secret 访问 key 。G:\>aws s3 cp --recursive s3://url-index-given/。
(其中 url 被替换为 url-index-出于示例目的给出
)。并得到这个错误:
fatal error :无法连接到端点 URL:“https://url-index-given.s3.None.amazonaws.com/?list-type=2&prefix=&encoding-type=url”
我已经尝试卸载 awscli
包并遵循 this process亚马逊推荐,无任何错误。
最佳答案
该错误表明您在使用 aws configure
时是否为 Region
提供了无效值。 (看到 URL 中的 None
了吗?这是 Region 通常去的地方。)
您应该再次运行 aws configure
并为其指定一个有效区域(例如 us-west-2
)。
关于amazon-web-services - AWS CLI : Could not connect to the endpoint URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60644051/