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

对于上述 aws 胶水作业脚本,我收到以下错误

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)'))

任何想法为什么会发生这种情况?

4

1 回答 1

2

if your glue script is pointing out to VPC then you need to create VPC endpoint for your configured VPC.

go to AWS VPC > end point > create dynamo db end point for your VPC and then try.

于 2017-11-21T12:44:04.480 回答