There is currently a bug with the CDK using Event Notifications (aws/aws-cdk#5760). See Custom Resource workaround in "service-a-stateless.ts".
This demo can be extended to perform cross-account replicaiton.
However to keep things simple, we deploy 3 services each with their own Cloudformation Stack to demonstrate the replication.
Service A is the master source of the data. Services B and C use the source data with synchronisation with Service A.
Service A will cleanse and validate the data so even if the actor uploads a corrupted copy then it won't break downstream services.
This is a blank project for CDK development with TypeScript.
The cdk.json
file tells the CDK Toolkit how to execute your app.
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