I'm trying to use redshift_connector by AWS to connect to my Redshift cluster.
To be able to connect, I first need to set up a proxy. Since redshift_connector doesn’t seem to have a dedicated parameter for proxy, I created and set an environment variable before creating the connection:
os.environ['HTTPS_PROXY'] = 'proxy_url'
However, the connection creation often times out, and it seems this is because of the proxy setting.
When I try using boto3 with redshift-data, and I supply the proxy inside the Config object:
config = Config(proxies={...})
…it works just fine.
Question:
Is there any other way to set up a proxy for redshift_connector?
I’d prefer using redshift_connector over boto3 so I can avoid active waiting for results.