简体   繁体   English

AWS Glue Dynamobd连接超时错误

[英]AWS Glue Dynamobd Connection Timed out Error

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

I got the following error for the above aws glue job script 对于上面的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)'))

Any ideas why this is happening? 任何想法为什么会这样?

if your glue script is pointing out to VPC then you need to create VPC endpoint for your configured VPC. 如果您的粘合脚本指向VPC,则需要为已配置的VPC创建VPC端点。

go to AWS VPC > end point > create dynamo db end point for your VPC and then try. 转到AWS VPC>端点>为您的VPC创建dynamo db端点,然后尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM