Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Source "Redshift (with IAM User/Role)" does not support Redshift Serverless #6891

Open
roki18d opened this issue Apr 15, 2024 · 2 comments

Comments

@roki18d
Copy link

roki18d commented Apr 15, 2024

Issue Summary

As title, the data source "Redshift (with IAM User/Role)" is only for Redshift Provisioned Cluster, and does not seem to support Redshift Serverless.

I think, "Redshift (with IAM User/Role)" would be data source using Federated Identity, which is Redshift authorization feature. Officially in AWS, Federation ID supports both Redshift Provisioned Cluster and Redshift Serverless, but the Redash data source only supports the former.

Also, there might be some bugs like:

  • The property named IAM Role Name should be filled with IAM Role ARN.
  • User property looks like required one, but I think either IAM Role Name/ARN or User is required. (If this property expects IAMR:{role-name} format, this might not be a bug.)

Steps to Reproduce

  1. [Settings] -> Click [+ New Data Source] -> Search and select [Redshift (with IAM User/Role)] data source
  2. In data source properties, there is Redshift Cluster ID but not Redshift Serverless WorkGroup. When I tried to fill Redshift Cluster ID with my Redshift Serverless WorkGroup name and test connection, I got the following error message.
Connection Test Failed:
An error occurred (ClusterNotFound) when calling the GetClusterCredentials operation: Cluster analysis-prod-main-wg not found.
Screenshot for data source addition dialogue DataSource-Redshift-with-IAM-User-Role
Screenshot for test connection error message test-connectio-error

Technical details:

  • Redash Version: redash/redash:10.1.0.b50633
  • Browser/OS: Google Chrome 123.0.6312.122(Official Build) (arm64)
  • How did you install Redash: Build Redash services on ECS Service with Docker. The Database engine for Redash is Amazon Aurora PostgreSQL.
@roki18d roki18d changed the title Data Sources "Redshift (with IAM User/Role)" does not seems to support Redshift Serverless Data Source "Redshift (with IAM User/Role)" does not seems to support Redshift Serverless Apr 15, 2024
@roki18d roki18d changed the title Data Source "Redshift (with IAM User/Role)" does not seems to support Redshift Serverless Data Source "Redshift (with IAM User/Role)" does not support Redshift Serverless Apr 15, 2024
@AndrewChubatiuk
Copy link
Collaborator

hey @roki18d
please try to use changes from #6914
added there redshift serverless support

@roki18d
Copy link
Author

roki18d commented Apr 24, 2024

Hi, @AndrewChubatiuk
Thank you for your quick response and PR submission for the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants