Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS-私有EC2(北弗吉尼亚州)和;S3(孟买)-名单问题_Amazon Web Services_Amazon S3_Amazon Ec2 - Fatal编程技术网

Amazon web services AWS-私有EC2(北弗吉尼亚州)和;S3(孟买)-名单问题

Amazon web services AWS-私有EC2(北弗吉尼亚州)和;S3(孟买)-名单问题,amazon-web-services,amazon-s3,amazon-ec2,Amazon Web Services,Amazon S3,Amazon Ec2,创建了一个私有EC2实例,为S3创建了一个VPC端点(com.amazonaws.us-east-1.S3),我能够获取位于us-east-1区域的S3 bucket文件 aws s3 ls s3://usbastiontesting --recursive 我在孟买地区有一个S3存储桶,我是否可以从私有EC2实例(N.Virginia)获取这些文件 在下面的命令中使用,但它不提取文件: aws s3 ls s3://mumbaibastiontesting --recursive --reg

创建了一个私有EC2实例,为S3创建了一个VPC端点(com.amazonaws.us-east-1.S3),我能够获取位于us-east-1区域的S3 bucket文件

aws s3 ls s3://usbastiontesting --recursive
我在孟买地区有一个S3存储桶,我是否可以从私有EC2实例(N.Virginia)获取这些文件

在下面的命令中使用,但它不提取文件:

aws s3 ls s3://mumbaibastiontesting --recursive --region ap-south-1
抛出以下错误:

2018-06-12 11:09:42,874 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): s3.ap-south-1.amazonaws.com
2018-06-12 11:10:42,938 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/botocore/endpoint.py", line 213, in _get_response
    proxies=self.proxies, timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/botocore/vendored/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/botocore/vendored/requests/adapters.py", line 419, in send
    raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPSConnectionPool(host='s3.ap-south-1.amazonaws.com', port=443): Max retries exceeded with url: /mumbaibastiontesting?prefix=&encoding-type=url (Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPSConnection object at 0x7f8fe99f86d0>, 'Connection to s3.ap-south-1.amazonaws.com timed out. (connect timeout=60)'))
2018-06-12 11:09:42874-主线程-botocore.vendored.requests.packages.urllib3.connectionpool-INFO-启动新的HTTPS连接(1):s3.ap-south-1.amazonaws.com
2018-06-12 11:10:42938-主线程-botocore.endpoint-调试-发送HTTP请求时收到ConnectionError。
回溯(最近一次呼叫最后一次):
文件“/usr/lib/python2.7/dist packages/botocore/endpoint.py”,第213行,在get响应中
代理=self.proxies,超时=self.timeout)
文件“/usr/lib/python2.7/dist packages/botocore/vendored/requests/sessions.py”,第573行,在send中
r=适配器.send(请求,**kwargs)
文件“/usr/lib/python2.7/dist packages/botocore/vendored/requests/adapters.py”,第419行,在send中
提升连接超时(e,请求=请求)
ConnectTimeout:HTTPSConnectionPool(host='s3.ap-south-1.amazonaws.com',port=443):url:/mumbaibastiontesting?prefix=&encoding type=url超过了最大重试次数(由ConnectTimeoutError(,'连接到s3.ap-south-1.amazonaws.com超时(连接超时=60)'))

请建议。

当前端点不支持跨区域访问。如果你参考AWS文件,它会被清楚地提到

端点当前不支持跨区域请求。请确保在与bucket相同的区域中创建端点


“这不是获取文件”,但发生了什么?错误?暂停?
--debug
告诉您什么?抛出ConnectionError错误。更新了原始帖子。谢谢你提供的信息。