2017-08-28 88 views
0
import boto3 
dynamodb = boto3.resource('dynamodb', region_name="us-east-1") 
table = dynamodb.Table('user_logs') 
response = table.scan() 

我得到了上述AWS膠作業腳本AWS膠Dynamobd連接超時錯誤

botocore.vendored.requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='dynamodb.us-east-1.amazonaws.com', port=443): Max retries exceeded with url:/(Caused by ConnectTimeoutError(<botocore.awsrequest.AWSHTTPSConnection object at 0x7f7c58942b50>, 'Connection to dynamodb.us-east-1.amazonaws.com timed out. (connect timeout=60)')) 

任何想法以下錯誤爲什麼發生這種情況?

回答

1

如果您的粘連腳本指向VPC,則需要爲您配置的VPC創建VPC端點。

轉到AWS VPC> endpoint>爲您的VPC創建dynamo db端點,然後嘗試。