aws s3 ls s3://usbastiontesting --recursive
我在孟买地区有一个S3存储桶,我能从私密的EC2实例(弗吉尼亚州)获取这些文件吗?
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)'))