This is a collection of posts, videos and similar content which has been published within the CDK ecosystem.
Deploying your CDK app to different stages and environments
For this blog post, I want to show this based on a simple sample application that runs an nginx Webserver using ECS and Fargate and has an ApplicationLoadBalancer as an entry point. Using the ECS patterns library of the CDK, this is only one construct named ApplicationLoadBalancedFargateService and has a few settings like container image, number of containers and potentially fixed domain names.
Work on your Lambda functions live
AWS CDK has been great for us and our readers over on Serverless Stack. But the local development experience for Lambda isn't great. To fix this we created a Live Lambda Development environment in SST. SST makes it easier to build serverless apps by allowing you to work on your Lambda functions locally while connecting to your deployed resources.
Web Services with AWS CDK
Tutorial: I built a small web service to put the CDK through its paces. My application has a React frontend that fetches a list of really shitty websites from a Lambda function and saves them in the browser’s IndexedDB, a sort of browser SQL database.
CDK Corner – January 2021
December was an exciting month for CDK! Jason Fulghum delivered an AWS re:Invent presentation on how CDK has changed over the past year and what customers can expect in the next year. The highlight of this talk was the alpha release of CDK v2.
Working backwards: The story behind the AWS Cloud Development Kit
Behind every successful open source project, you’ll find a real problem that needed to be solved. In this post, I will explore one such example through the backstory of the AWS Cloud Development Kit, or AWS CDK for short.
Correctly defining CDK dependencies in L3 constructs
When creating L3 constructs for the AWS CDK, the easiest thing to get wrong is defining dependencies. And with wrong dependency definitions you make it hard to impossible to use your package. This post will show how you correctly define CDK dependencies.
What I learned using the AWS CDK in the past year
In 2019, I worked as a Developer when I decided to change my profile and become an AWS Architect. I started working with the CDK in October 2019. I learned a lot from the CDK and from the AWS itself.
Migrating CloudFormation templates to the AWS Cloud Development Kit
Until today, the only way to leverage the infrastructure defined in existing templates was the CfnInclude class from the core module, which allowed including a CloudFormation template in a CDK application, and outputting it unchanged. However, this solution has a couple limitations:
Creating an AWS Cognito user pool with OAuth flows using AWS CDK
The other day I wanted to create an AWS Cognito User Pool with OAuth 2.0 client credential flow using the famous AWS CDK. It is pretty easy but not obvious...
AWS Community Nordics 2020 Virtual Event: CDK Special
I got the chance to speak about my current favourite subject (CDK) in detail! The event was a 2 hour intense deep dive (with demos) into what CDK is all about, why & how we use it at Alma Media, important concepts and finally some considerations for complex projects
Building Scalable GraphQL APIs on AWS with CDK, TypeScript, AWS AppSync, Amazon DynamoDB, and AWS Lambda
In this post, we’ll be building an AWS AppSync API from scratch using CDK. The post will focus on how to use CDK to deploy AppSync APIs that leverage a variety of AWS services including Amazon DynamoDB and AWS Lambda.