The original proyect https://github.com/cdk-patterns/serverless/blob/main/the-eventbridge-etl/README.md. I basically rewrited the project using the CDK 2.0.
Make sure to have the Docker daemon running, because this project builds a Docker image and pushes it to ECR.
npm run build
cdk deploy
To trigger the ETL pipeline, upload the example .csv in the data_example folder.
Every lambda writes logs to CloudWatch. The Observer lambda writes every event sent via Eventbridge to Cloudwatch too.
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