Learn how to configure Amazon Aurora and RDS for PostgreSQL as a source in Artie, including service account creation, publication setup, and enabling logical replication.
CREATE USER artie_transfer WITH PASSWORD 'password';GRANT USAGE ON SCHEMA schema_name TO artie_transfer;-- Grant access to existing tablesGRANT SELECT ON ALL TABLES IN SCHEMA schema_name TO artie_transfer;-- Grant read-only access to future tables created by current userALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT SELECT ON TABLES TO artie_transfer;-- The replication role does not have enough permissions to create publications.-- So you will need to create this as well.CREATE PUBLICATION dbz_publication FOR ALL TABLES WITH (publish_via_partition_root = true);-- Grant replication roleGRANT rds_replication to artie_transfer;
For all other users that will run CREATE TABLE statements please run
grant.sql
-- Grant read-only access to future tables for given userALTER DEFAULT PRIVILEGES FOR ROLE given_user IN SCHEMA schema_name GRANT SELECT ON TABLES TO artie_transfer;