Example application of an event-driven aws serverless architecture biuld with aws cdk.
Slides - Serverless Apps Workshop
- Every get request to
/order
generates an item in the database - each change in the database is triggering a lambda that checks the database change and then publish a event with the order details and a url for email reviever to confirm the delivery
- a event rule forwards all order events to a SNS topic which sents an email to the configured email address (maybe check spam folder)
- once the user click the link in the email the second apigateway endpoint is triggered which updates the status in the database
- all events are logged to a loggroup
npm run deploy
deploy this stack to your AWS account/regionnpm run deploy:no-approval
deploy this stack to your AWS account/region without beeing asked for approvalnpm run diff
compare deployed stack with current statenpm run synth
emits the synthesized CloudFormation template