For the configuration on the source database, see Configure Migration Tasks with Self-built PostgreSQL Database as Source.
For the configuration on the target database, see Migrate from a Self-built PostgreSQL Database to a CT-RDS PostgreSQL Database.