Configure Redshift Permission Setup
Overview
For the Redshift Connector to effectively write data to your Amazon Redshift database, you need to set up appropriate permissions for the Redshift user.
This section outlines the steps to create a Redshift database, create a user, and grant the necessary privileges for writing data.
Create Redshift database and user
Create a Redshift database on your AWS account using the command:
CREATE DATABASE <database_name>;
Create a Redshift user using the command:
CREATE USER <user_name> WITH password <user_password> | DISABLE;
注記The password is optional as it's not needed for the connection.
Grant Redshift user privileges
Once the Redshift user is created, you need to grant appropriate privileges to allow the Connector to write data to the database.
Grant the
CREATE
privilege on the database to the Redshift user:GRANT CREATE ON DATABASE <database_name> TO <user_name>;
Ensure that the Redshift user has sufficient privileges to perform the necessary actions for data ingestion and management.