Configuring AWS RDS Postgres for ReadySet
If you're using AWS RDS Postgres, you'll need to make a few configuration changes via the AWS console to enable ReadySet to properly replicate tables.
Before each step listed below, you'll need to:
- Log in to your AWS account.
- Click on RDS, which can be found by searching for it in the search bar, under the Services menu, or in your Recently Visited area.
To make sure ReadySet can connect with your database, it's easiest if you install ReadySet in the same VPC as your database. If ReadySet is located in another VPC, you can set up VPC peering; otherwise, the database will have to be publicly accessible.
- Within RDS under the Resources section, select DB instances.
- Choose the instance you want to make publicly accessible.
- Click the Modify button in the upper right corner.
- In the Connectivity section, click on Additional configurations.
- Under Public access, choose Publicly accessible.
- Click on Continue at the bottom of the page.
- Select when you want to apply the change and click Modify DB instance.
- Under the Resources section, select Parameter groups (opens in a new tab) in the upper right.
If you already have Parameter groups, you'll want to modify an existing group. If you don't have an existing parameter group, you'll need to create a new one following these steps (opens in a new tab) first.
Select the Parameter group you want to modify and then click Edit in the upper right corner.
- Search for
rds.logical_replicationand change the value from 0 to 1.
- If you used an existing Parameter group, skip to step 5. If you created a new Parameter group, you will need to associate your group with this instance. To do that, go to your RDS dashboard, click your instance name and select Modify in the upper right corner. Open Additional configurations at the bottom of the page. Under Database options there's a dropdown to select a DB parameter group. Select the appropriate Parameter group.
Click on Continue at the bottom of the page. Select when you want to apply the change and click Modify DB instance.
- To check that this worked, you can return to Resources and select Parameter groups (see step 3). Select the Parameter group you edited and search for
If you're not seeing a value of 1, you may need to reboot your instance. To do that go to your instance and click on the Actions menu in the upper right corner and select Reboot.
When you initially set up your RDS instance, you created an admin user and password (opens in a new tab). If you use this admin user account when configuring your database for ReadySet, you will not need to enable superuser permissions
However, if you are using a different database user than the default admin, you will need to enable superuser permissions. To do that, execute the following:
UPDATE pg_user SET usesuper=true where usename = CURRENT_USER;