I have a requirement to copy data between tables of two different instances in redshift.
The first one is dev environment and the second one is stage environment.
The requirement is to copy a table from dev to stage.
Instance 1: Dev
URL : link1
username : userdev
password: passdev
schema : schema1
tablename: table1
Instance 2: Stage
URL: link2
username: userstage
password: passstage
schema: schema2
tablename: table2
Is there a way to copy between these instances?
I do not want to use the copy utility. I need a script.
Please have a look at out Unload/Copy Utility: https://github.com/awslabs/amazon-redshift-utils/tree/master/src/UnloadCopyUtility
The utility automates the process you've described above.
If it one time you can use copy command .
First copy data from instance-1 to S3. Then from S3 to instance-2.
If you need to do this daily use AWS Lambda with A JDBC connection to redshift with S3 as mediator.
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.