Title: Issue #27: Showing Some CDK Love Publication: Ready, Set, Cloud! Series: Ready, Set, Cloud Picks of the Week Author: Allen Helton Published: October 03, 2022 URL: https://www.readysetcloud.io/newsletter/27/ Lots of posts with reference projects built in the CDK last week. ### Serverless Superhero This week's serverless superhero is [Ala Shiban](https://twitter.com/AlaShiban), founder and CEO of [Klotho](https://klo.dev/). Ala has been pioneering the infrastructure *from* code space and just recently released the closed beta of Klotho. He has lots of great ideas on how to bring serverless compute to the hands of many. Thank you Ala, for all your hard work and congratulations on the release! ### Tutorials We talk a lot about event driven architectures, but sometimes fail to mention specific patterns that make them work so well. [Bobur Umurzokov](https://twitter.com/BoburUmurzokov) helps us out by talking about [CQRS, event sourcing, and serverless](https://apisix.apache.org/blog/2022/09/23/build-event-driven-api/) in his blog last week. This post doesn't describe in detail how to implement with Lambda or EventBridge, but rather it talks about the moving parts of these complex patterns. A great way to expand your scope of understanding for these difficult concepts. If you want specifics about building event-driven patterns in AWS, [Marcia Villalba](https://twitter.com/mavi888uy) posted a great video on exactly that. She walks through [building an example pub/sub project](https://www.youtube.com/watch?v=rSIirRFa77s) using the CDK. Her video demonstrates how to build this pattern using SNS rather than EventBridge. Ever wonder why you'd use SNS over EventBridge? [Lee Gilmore](https://twitter.com/LeeJamesGilmore) has another outstanding article where he talks about [guaranteed event ordering](https://medium.com/@leejamesgilmore/guaranteed-event-ordering-when-using-amazon-eventbridge-as-your-enterprise-service-bus-ca7a2b62afea). He describes in detail how to build an event system with SNS and EventBridge living side by side to enforce ordering when necessary. As usual, Lee provides a reference architecture written in the CDK for you to follow along. I was recently trying to figure out how to log VTL errors from API Gateway integrations into CloudWatch. Luckily for me, [Binh Bui](https://twitter.com/bvbinh) published his post on [AWS API Gateway access logs](https://dev.to/aws-builders/aws-api-gateway-access-logs-how-to-get-them-and-what-to-do-with-them-40hl) where he shows us how to enable, format, and query access and execution logs. Best part? He shows you how to enable this in the CDK, so you can take it and immediately start enabling logs in your apps. A couple months ago AWS released an update that allows [CloudFormation to publish EventBridge notifications](https://www.readysetcloud.io/newsletter/17/#new-releases), unlocking a lot of devops-y potential. [Mahanth Jayadeva](https://twitter.com/MahanthJayadeva) demonstrates [how to build custom workflows for post provisioning management](https://aws.amazon.com/blogs/devops/using-cloudformation-events-to-build-custom-workflows-for-post-provisioning-management/). He talks about what could happen when a stack fails to deploy or update and how to respond to it. ### Spotlight CDK is taking the cloud world by storm. The adoption rate keeps climbing, we're seeing more and more reference architectures built using it, and many blog posts use it for quick launches. It's a great tool that provides a level of abstraction we haven't had access to before. But it's not perfect. [Matthew Bonig](https://twitter.com/mattbonig) covers [the bad parts of the CDK](https://www.youtube.com/watch?v=AVMkjtJ21Co) in his video where he discusses everything from semantic versioning, to determinism, to ownership, and much more. There is a ton covered in this video and is absolutely worth the watch whether or not you're an active CDK user. ### Tip of the Week There tends to be confusion on what serverless is or isn't. [Anna Geller](https://twitter.com/anna__geller) shares with us an incredibly thorough and easy to follow thread to help clarify for us. :clap: ### Last Words Lately I've been taking a dive into [infrastructure *from* code solutions](https://www.readysetcloud.io/blog/allen.helton/first-impression-of-infrastructure-from-code/) to see where we're at as an industry. I've formed some interesting initial opinions and am curious to see how some of these vendors play it out. There's lots of potential here to build something revolutionary, but it will be tricky along the way. If you'd like to make a recommendation for the serverless superhero or for an article you found especially useful, send me a message on [Twitter](https://twitter.com/allenheltondev), [LinkedIn](https://www.linkedin.com/in/allenheltondev/), or [email](mailto:allenheltondev@gmail.com). Happy Coding! Allen