【发布时间】:2022-07-30 07:07:37
【问题描述】:
我在与 Redshift 集群相同的 AWS 账户中的 lambda 上运行 awswrangler.redshift.connect_temp。当 Redshift 集群未设置为公共时,在运行 connect_temp 时出现连接超时错误:
[ERROR] InterfaceError: (\'communication error\', TimeoutError(110, \'Connection timed out\'))
Traceback (most recent call last):
File \"/var/task/redshift_import_lambda.py\", line 12, in handler
with wr.redshift.connect_temp(
File \"/opt/python/awswrangler/redshift.py\", line 582, in connect_temp
return redshift_connector.connect(
File \"/opt/python/redshift_connector/__init__.py\", line 365, in connect
return Connection(
File \"/opt/python/redshift_connector/core.py\", line 619, in __init__
raise InterfaceError(\"communication error\", e)
如果我将集群设置为公共,则连接很好。
Redshift 集群是否必须公开才能让awswrangler 连接?
有没有办法在使 AWSWrangler 连接工作时将集群设置为非公共(出于安全原因)?
标签: python amazon-web-services amazon-redshift