HTTPSConnectionPool(host ='s3-us-west-1b.amazonaws.com',port = 443):URL超过最大重试次数 [英] HTTPSConnectionPool(host='s3-us-west-1b.amazonaws.com', port=443): Max retries exceeded with url

查看:473
本文介绍了HTTPSConnectionPool(host ='s3-us-west-1b.amazonaws.com',port = 443):URL超过最大重试次数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将AWS ec2实例中的文件复制到S3存储桶文件夹,但是出现错误

I am trying to copy a file from my aws ec2 instance to S3 bucket folder, but i am getting error

这是命令示例 aws s3 cp/home/abc/icon.jpg s3://mybucket/myfolder

这是我得到的错误

上传失败:./icon.jpg到s3://mybucket/myfolder/icon.jpg HTTPSConnectionPool(主机='s3-us-west-1b.amazonaws.com',端口= 443):最大网址重试次数超过了:/mybucket/myfolder/icon.jpg(原因:[Errno -2]名称或服务未知)

我已经为aws cli命令行配置了配置文件

I have already configured the config file for aws cli command line

请提出解决此问题的方法

Please suggest the solution to this problem

推荐答案

您没有使用有效的端点.

You aren't using a valid endpoint.

s3-us-west-1b.amazonaws.com无效.

S3端点位于区域级别,而不是可用性区域级别.

S3 endpoints are at the regional level, not the availability zone level.

您可能正在寻找s3-us-west-1.amazonaws.com.

http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region

这篇关于HTTPSConnectionPool(host ='s3-us-west-1b.amazonaws.com',port = 443):URL超过最大重试次数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆