简体   繁体   中英

AWS DMS - Scheduled DB Migration

I have Postgresql db in RDS. I need to fetch data from a bunch of tables in postgresql db and push data into a S3 bucket every hour. I only want the delta changes (any new inserts / updates) to be sent in the hourly. Is it possible to do this using DMS or is EMR a better tool for performing this activity?

You can create an automated environment of migration data from RDS to S3 using AWS DMS (Data Migration Service) tasks.

  1. Create a source endpoint (reading your RDS database - Postgres, MySQL, Oracle, etc...);
  2. Create a target endpoint using S3 as an engine endpoint (read it: Using Amazon S3 as a Target for AWS Database Migration Service );
  3. Create a replication instance, responsible to make a bridge between source data and target endpoint (you will only pay while processing);
  4. Create a database migration task using the option 'Replication data change only' on migration type field;
  5. Create a cron lambda, which starts a DMS task, with stack Python following these instructions of this articles Lambda with scheduled events e Start DMS tasks with boto3 in Python .

Connecting these resources above you may can have what you want.

Regards,

Renan S.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM