Closed guru-pochineni closed 11 months ago
Hi @guru-pochineni, thank you for bringing this issue to our attention. The root cause of this issue has been identified, it is in iam_helper.py LOC 116. We have identified a fix and will include in our next release which is scheduled to occur in August.
In the meantime, my recommendation would be to downgrade the version of redshift-connector in use. We apologies for the inconvenience. If downgrading redshift-connector or waiting until August for the fix is not acceptable please let me know and we can make an ad-hoc release to address this bug. Please install the latest version of redshift-connector, it should be fixed now. Thank you for your understanding!
Hello @Brooke-white, thank you for promptly fixing this and doing an ad hoc release. I can connect to Redshift using the latest version of redshift-connector.
Closing this issue.
Driver version
2.0.912
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.53064
Client Operating System
Amazon Linux
Python version
3.8
Table schema
NA
Problem description
We use
apache-airflow-providers-amazon==3.4.0
to connect to Redshift via Airflow using IAM auth. This airflow package installs the latest version of redshift-connector by default. We are facing issues connecting to Redshift in2.0.912
.Error message:
ModuleNotFoundError: boto3 >= 1.26.157 required for authentication with Amazon Redshift using custom domain name. Please upgrade the installed version of boto3 to use this functionality.
Due to some legacy libraries our boto3 version is less
1.26.157
, which is causing connection to fail. This was working as expected till2.0.911
. I see a recent change for "Support Redshift custom domain name" has added this check. As we are using IAM auth, we supplycluster_identifier
in Airflow which I think is now considered as cname?Is this an expected change?
Airflow connection details
Python Driver trace logs
Reproduction code
Connect via Airflow with boto3 < 1.26.157.