How would we best do the following
- Copy a DynamoDB table to Redshift
- Backup the DynamoDB table to S3
- Delete the DynamoDB table
Would Data Pipeline do all this for us on a schedule? Or could we do all via Lambda and the CLI?
Related discussions:
How would we best do the following
Would Data Pipeline do all this for us on a schedule? Or could we do all via Lambda and the CLI?
Related discussions:
You could use emr to load it into hive, write it to emrfs, and then trigger something which executed a load sql into redshift
alternatively, data pipeline should do it probably.
Redshift can copy from dynamodb directly (though I’ve never had need to test this)
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/RedshiftforDynamoDB.html
Is this a one-time thing? Probably use EMR like the other guy said.
If this is an ongoing sort of process. I would use a dynamodb stream off the table to lambda which writes to two Kinesis Firehose streams, one which writes to S3 and one which writes to redshift
There’s a DataPipeline template for exporting a DDB table to S3, which is basically your second requirement. You can then load from S3 to Redshfit using COPY, which will probably be faster and cheaper than going through EMR, and definitely much more so than Lambda/CLI since the data moves directly from S3 into Redshift.