Multiple Instances of Connector¶
If you have multiple AWS Redshift clusters and need to manage access permissions using the Privacera Connector for AWS Redshift, you must configure a separate connector instance for each cluster.
You may need multiple instances in scenarios such as:
- Redshift cluster per department: Each department has its own dedicated Redshift cluster.
- Redshift cluster per environment (dev, test, prod): Separate clusters for development, testing, and production environments.
Since database objects differ across clusters, you must create distinct access policies for each one. To achieve this:
- Create a separate connector instance in Privacera Manager for each Redshift cluster.
- Define a corresponding Resource Policy Service in the Privacera portal for each instance.
Prerequisites¶
- Privacera Manager is installed and functional, with at least one Redshift connector instance already configured.
- A unique name is assigned to the new connector instance.
- All prerequisites for the new connector instance are met, as outlined in the prerequisites section.
Setup¶
Resource Policy Service Instance¶
To configure a new Resource Policy service instance in the REDSHIFT service repository, follow these steps.
- Navigate to Access Management -> Resource Policies in the Privacera portal.
- In the REDSHIFT tile, click the three-dot icon and select Add Service.
- Enter the following fields:
- Service Name: Enter a unique name for the new connector instance. For example,
privacera_redshift_instance2
. - Display Name: Enter a descriptive name for easy identification. For example,
Redshift Instance 2
. - Description: Enter a description for the new instance.
- Active Status: Toggle to
On
. - Select Tag Service: Select
privacera_tag
or your tag service, if you have configured a different tag service.
- Service Name: Enter a unique name for the new connector instance. For example,
- Click Save to complete the setup.
New Connector Instance¶
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to navigate to the
/config
directory.Bash -
Create a new directory for the AWS Redshift connector configuration for the new instance.
Note
Assuming you already have an instance named
instance1
, we are going to create an instance namedinstance2
. You can change this name to uniquely identify your installed connector configuration.Bash -
Copy the sample connector configuration file to your custom directory:
Bash -
Run the following command to open the
.yml
file to be edited:Bash -
Add or modify the following variable in the YAML file:
Continue to modify other variables as needed. Refer to the setup guide for more details.YAML
- Log in to your account in PrivaceraCloud portal using your credentials.
- Go to the Settings -> Applications tab.
- Click on the Redshift icon in the Connected Applications section.
- Click on the CONNECT NEW APPLICATION button.
- Follow the steps to create a new Redshift connector from setup guide.
- Prev topic: Advanced Configuration