2 Answers
- Newest
- Most votes
- Most comments
1
One option could be to use DMS.
DMS does support S3 as a source - https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.S3.html
DMS supports Aurora Postgres as a target - https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.PostgreSQL.html
0
The procedure for using the table_import_from_s3() function is explained here: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PostgreSQL.S3Import.html
You call the function from a SELECT statement. And so you could automate that by calling psql from a shell script, and passing the SELECT statement as a -c (command) or -f (SQL script file) argument to psql.
answered 3 years ago
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 2 days ago
- AWS OFFICIALUpdated 7 months ago
