This is a collection of posts, videos and similar content which has been published within the CDK ecosystem.
Serverless Weather Reporting with AWS Step Functions and CDK
In this article, we create a weather reporting website using CDK and a Step Function.
Deploying Strapi CMS on AWS with ECS on Fargate, Aurora Serverless v2 and CDK
This article shows a complete example on how to use CDK to deploy a Strapi project on AWS using Serverless components: ECS on Fargate along with a Postgres Aurora Serverless V2 database.
Simpler single-file AWS CDK deployments
I am checking out the AWS CDK to deploy serverless applications. But having used Serverless Framework a lot, I find the AWS CDK very noisy and invasive in some of my projects. It doesn't have to be though.
Hey CDK, how do cross-account deployments work?
The AWS CDK makes it easy to deploy your application, regardless if it consists of multiple stacks that are deployed in multiple accounts and regions. Even assets are not a problem. But in your pipeline, you might need some more control over what happens when. And you should understand what happens under the hood. Why?
Creating Lambda Layers with TypeScript and CDK - The Right Way
An example on how to deploy and use internal packages as Lambda Layers. The post also covers potential mistakes that can be made during development with an exploration on why those mistakes can be easily missed.
My experience on Infra as Code with AWS CDK + Tips & Tricks
Recently I converted my pet project Infra as Code from shell to CDK with TypeScript. The biggest challenges I faced are shared in this technical blog post.
Building a Flutter application (for Web, Android and iOS) with AWS Lambda Function URL backend using AWS CDK Pipelines (written in Java) and CodeMagic
In this post I am extending the existing example to build a demo Flutter application for Web, Android and iOS. The CDK code will be in Java, the Lambda functions in Typescript and the WebApp in Dart. Why? Because I love trying out things.
Building a Flutter application (for Web) with AWS Lambda Function URL backend using AWS CDK Pipelines (written in Java)
In this post I am going to use CDK Pipelines to build a demo Flutter application hosted on AWS S3 with a Backend powered by AWS Lambda (using Function URLs). The CDK code will be in Java, the Lambda functions in Typescript and the WebApp in Dart. Why? Because I love trying out things.
Improve the Developer Experience (DX) by Publishing an API SDK - includes CDK repos
Make the OpenAPI Spec file the contract between back and frontend by publishing an API SDK as an NPM package. Create visibility with automation by using Slack notifications when the backend pipeline publishes a new SDK.
Globalize Your Amazon Rekognition Custom Labels with AWS CDK
At this moment, Amazon Rekognition Custom Labels is a regional service. We are building real-time AWS DeepRacer analytics with Amazon Rekognition Custom Labels and Amazon Kinesis Video. We hope the solution can be used around the world. To reduce the network latency and make it high availability, we want to deploy the model to all regions with Amazon Rekognition Custom Labels support. At this moment, you cannot copy model to another region directly and you need to rebuild the model in each region. It is time-consuming and error-prone if you do it manually. On the other hand, for the place like Hong Kong, our application needs to call the model in another region, and we don’t know which region is the best.
How to build an automatic grading solution for handwriting assessments with Amazon Textract and AWS CDK?
By default amazontextract handles 1 PDF as a whole but in the real world, we scan a set of hashtag#forms, survey or assignments, and wants to extract the individual document values into a row in Excel. Also, we want to have the high level output for multiple choice and true or false question but hashtag#textract just tell the checkbox is checked or not the output the answer of those question. Here is our solution to convert low level output into meaningful report plus images enhancement and hashtag#ocr.
How to use Hugging Face SageMaker Serverless Inference with AWS CDK Construct
The best part of Hugging Face is for non-ML focus developers to add machine leaning capabilities into their project. And, this CDK Construct let developers add Hugging Face Model with SageMaker Sercerless Inference with 2 lines of code.
Debug Lambda Functions in CDK with VS Code
In this tutorial we look at how you can set breakpoints and debug the Lambda functions in your CDK apps using Visual Studio Code. We use Live Lambda Dev from SST, an open source framework for serverless built using CDK.
The CDK will enable a new generation of Serverless Developers
In this talk, I will explore how the CDK solves these problems and brings infrastructure-as-code closer to DevOps engineers than ever before. I will cover three segments: the power of a multi-language framework, the benefits of applying unit testing to your infrastructure and applying the time-proven concepts of object oriented design and DRY to your infrastructure-as-code.
How to Deploy Static Website with OAuth 2.0 Authorization, CloudFront CDN in 20 Minutes?
From my long todo list, I found a topic related to OAuth 2.0 that I have always wanted to do. It's a perfect timing to try and see how to implement a CloudFront Extension solution in AWS CDK.
CDK Day In Review
CDK Day happened again on 30th April 2021. We had 22 speakers from across the globe give 18 talks covering AWS CDK, cdk8s, CDK for Terraform and Projen. This article will show some of the talks and go into the stats for how successful the day went. Since this is an event for the community by the community I have tried to be as transparent as possible.
Summary: AWS CDK v2 Developer Preview announcement
After a fantastic CDK Day, it's time to unpack all the announcements, cool tools and demos shared during the presentations. So let's start with the biggest one of them all, the release of the Developer Preview of AWS CDK v2.
Building and deploying Fargate with EKS using the AWS CDK & cdk8s+
In this blog post, we show you how to use the AWS Cloud Development Kit (AWS CDK) with cdk8s and cdk8s+ to deploy a sample Kubernetes workload on an Amazon EKS cluster running Kubernetes pods on AWS Fargate in an enterprise context. This post provides a solution we implemented with one of our enterprise customers.
Announcing AWS Cloud Development Kit v2 Developer Preview
The AWS Cloud Development Kit (AWS CDK) v2 is now available for Developer Preview in TypeScript, Python, Java, C#, and Go. The AWS CDK is an open-source software development framework to model and provision your cloud application resources using familiar programming languages.
Better together: AWS SAM and AWS CDK
AWS is announcing the public preview of AWS Serverless Application Model CLI (AWS SAM CLI) support for local development and testing of AWS Cloud Development Kit (AWS CDK) projects. AWS SAM and AWS CDK are both open-source frameworks for building applications using infrastructure as code (IaC).
Using AWS CDK to deploy your Amazon Managed Workflows for Apache Airflow environment
What better way to celebrate CDK Day than to return to a previous blog where I wrote about automating the installation and configuration of Amazon Managed Workflows for Apache Airflow (MWAA), and take a look at doing the same thing but this time using AWS CDK.
Introduction to the CDK Serverless tool suite
CDK Serverless is a tool suite to facilitate the use of the AWS Cloud Development Kit (CDK) in serverless architectures. It provides project management features to configure your TypeScript CDK app and also higher-level (L3) constructs for different APIs and resources needed for serverless applications.
Best practices for developing cloud applications with AWS CDK
In this post, we discuss strategies for organizing the development of complex cloud applications with large teams, using the AWS Cloud Development Kit (AWS CDK) as a central technology.
Developing enterprise application patterns with the AWS CDK
Enterprises often need to standardize their infrastructure as code (IaC) for governance, compliance, and quality control reasons. You also need to manage and centrally publish updates to your IaC libraries. In this post, we demonstrate how to use the AWS Cloud Development Kit (AWS CDK) to define patterns for IaC and publish them for consumption in controlled releases using AWS CodeArtifact.
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.