Problem
I've an Airflow pipeline that I'd like to run locally, which does the following:
- Downloads tables from Redshift to a S3 bucket (basically
RedshiftToS3Operator
) - Copies the tables from the S3 bucket to another Redshift (basically
S3ToRedshiftOperator
)
Question
Would it be possible to use QA Redshift, then copy those files to locally mocked S3 with LocalStack and finally use a mocked PosgreSQL for the second Redshift? Would this approach have more pros than cons?
Note: I'm not thinking of mocking Redshift locally with LocalStack, since apparently
the redshift service only mocks the redshift management endpoints (create cluster, etc...) and not the actual query engine. SO 1st comment