/cdk-examples

These are CDK template/patterns that I came across my journey with AWS CDK.

Primary LanguageTypeScriptMIT LicenseMIT

AWS CDK examples

MIT License Typescript

These are CDK examples exclusively written in typescript. These are CDK template/patterns that I came across my journey with AWS CDK. I hope other people find it helpful as I myself refer to these examples time to time.

Detailed explanation of each cdk example will be found at

https redirect

Redirect from www to non-www url

React pipeline

Build and deploy react app on s3 and cloudfront with Codepipeline

Hugo pipeline

Build and deploy hugo website on s3 and cloudfront with Codepipeline

NextJS pipeline

Build docker container and deploy SSR NextJS app on Fargate with ECS and Codepipeline

Lambda Layers

Share code and dependency library between multiple lambda functions with layers

Lambda Local

Lambda that is deployed with CDK can be invoked locally with SAM for faster iteration.

HTTP API

We will deploy HTTP API with CDK and you can consume api via subdomain or via main domain.

Typescript Lambda

Lambda function written in typescript. It is compiled and build to javascript and deployed with CDK.

Dynamodb Crud Lambda

We are using latest AWS SDK V3 for Javascript for doing CRUD operations on Dynamodb with Lambda functions written in typescript.

Golang Lambda

Build golang lambda function inside docker container that matches closely with the production environment.

Lambda Cost Optimization

We are going to run lambda on multiple ram settings to find out which gives you better value for money 💰.

Basic auth to Password protect s3 website with cloudfront lambda@edge

Before deploying changed to production website we deploy changes to preview site and test.