getredash / redash

Make Your Company Data Driven. Connect to any data source, easily visualize, dashboard and share your data.
http://redash.io/
BSD 2-Clause "Simplified" License
25.4k stars 4.3k forks source link

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

Open roki18d opened 2 months ago

roki18d commented 2 months ago

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:

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:

AndrewChubatiuk commented 2 months ago

hey @roki18d please try to use changes from https://github.com/getredash/redash/pull/6914 added there redshift serverless support

roki18d commented 2 months ago

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