Event notification on S3 will trigger when a new CSV object is added.
Lambda will process the CSV and add to DynamoDB using BatchWrite Item.
The lambda is set up to import csv from this dataset: https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads
Example data is in this repo at example-data.csv.
NB. The best way now to do csv Import from S3 is to use the feature built in to DynamoDB. This will be most cost effective.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template