python - 端点 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/”。我不想为此使用任何端点。
解决方案
推荐阅读
- scala - scala - 使用带有期货的for循环时如何展平嵌套的可选
- java - 如何在jsp中制作getRequestURI和queryString
- python - 通过使用 sessionID 过滤事务,使用 KafkaConsumer 从 Python 中的 Kafka 中获取特定记录
- javascript - 无法验证输入类型编号的点
- php - Wordpress Ajax 调用,可以运行 php 函数,但不能在该文件之外运行函数
- sql - 信息方案
- amazon-ec2 - EC2 AWS 系统可达性失败
- nskeyedarchiver - NSKeyedArchiver 我应该如何在 iOS12 中设置路径
- c# - 干净停止运行循环c#等待windows事件的线程
- jdbc - spark jdbc api不能使用内置函数