首页 > 解决方案 > 端点 URL 无法访问 ConnectTimeoutError:端点 URL 上的连接超时:“https://glue.ap-south-1.amazonaws.com/”

问题描述

我希望从 Glue 数据库中获取所有表。下面是我的 AWS Glue 作业脚本

next_token = ""
client = boto3.client('glue',region_name='ap-south-1')
table_list = []

while True:
  response = client.get_tables(DatabaseName = 'postgresql_processed', NextToken = next_token)
  for tables in response['TableList']:
      table_list.append(tables['Name'])
  next_token = response.get('NextToken')
  if next_token is None:
    break
print(table_list)

但我在端点 URL 上收到错误连接超时:“https://glue.ap-south-1.amazonaws.com/”。我不想为此使用任何端点。

标签: pythonamazon-web-servicespysparkaws-glueaws-glue-data-catalog

解决方案


推荐阅读