Connect to Amazon Redshift clusters and Redshift Serverless workgroups. Reeflow uses the PostgreSQL wire protocol so the credentials you create here are the same ones a Postgres client would use.
For security, create a dedicated read-only user rather than reusing an admin account. Redshift does not have a built-in global read role, so access is granted per schema:
-- Create the user
CREATE USER reeflow_reader WITH PASSWORD 'your-secure-password';
-- Allow the user to connect to the database
GRANT CONNECT ON DATABASE analytics TO reeflow_reader;
-- Allow read access to the target schema
GRANT USAGE ON SCHEMA public TO reeflow_reader;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO reeflow_reader;
-- Grant access to tables created later (run as the table owner)
ALTER DEFAULT PRIVILEGES IN SCHEMA public
GRANT SELECT ON TABLES TO reeflow_reader;