Welcome to the AWS CDK Tutorials repository! Here, you'll find a collection of example projects and AWS Cloud Development Kit (CDK) stacks that demonstrate how to build and configure various technologies in AWS.
This AWS CDK Tutorials repository serves as a learning resource for developers, DevOps engineers, and anyone interested in building infrastructure on AWS using the AWS CDK. Each example project is broken down into steps and has a linked blog post (in some cases a YouTube video as well) that show you everything you need to know about that project.
Before you follow along with one of the example projects, it's a good idea to get the following technologies setup and configured.
- Find an example project you want to follow along with.
- Read the linked blog post/watch the YouTube video.
- Follow along with the code.
- Integrate it into your own projects! 🚀
This repository acts like a mono-repository, each folder in the root directory is a standalone project that contains everything needed to run that project.
Here is a current list of all of the projects covered by this repository.
- Trigger a Lambda Function From Another Lambda Function Using an AWS EventBridge Event Bus
- Using Compression to Store Attribute Values in DynamoDB
- Configuring Lambda Layers for Lambda Functions
- Automating AWS CDK Stack Deployments with GitHub Actions
- Scheduling Lambda Functions with cron Jobs
- Scheduling events with the EventBridge Scheduler
- Invoking Lambda Functions Via DNS Requests With a Route 53 Hosted Zone
- AWS CDK Envrionment Variables Setup
- Updating a DNS Record on a Route 53 Hosted Zone Using a Lambda Function & AWS SDK
- Custom CloudWatch Alarms with SNS Notifications for Detecting Error Messages
- Build a REST API Using API Gateway, Lambda, and DynamoDB With API Key Authentication
- Create a GraphQL API: Step-by-Step Guide with AppSync and DynamoDB
- Reducing Latency: Pre-Warming Lambda Functions with EventBridge Rules
- Handling Contact Forms Submissions With a Custom REST API using AWS SES, API Gateway, and Lambda
- Building a GraphQL API With TypeScript Resolvers Using AWS AppSync and CDK
- Throttling API Keys in an API Gateway REST API using Usage Plans
- Generating Text Using AWS Bedrock via Lambda in TypeScript with the AWS SDK
- Image Generation and Storage using Stable Diffusion, AWS Bedrock, and TypeScript
- Leveraging AWS WAF to Throttle API Gateway Rest API Requests
- Starting an Existing Fargate Service Using Lambda and the AWS SDK
- Shifting from AWS Lambda to AWS ECS/Fargate: A Migration Guide
- Integrating Environment Variables with AWS AppSync via the AWS CDK
- Automatically Create an AWS API Gateway REST API and Related TypeScript Types via an OpenAPI Specification and AWS CDK
- Configuring DKIM/SPF For AWS SES Email Addresses Using The AWS CDK! Stop Emails Going to Spam and Protect Your Domain!
We welcome contributions to the CDK Tutorials repository! If you have any improvements, fixes, or new examples to add, please feel free to open a pull request. For major changes, please open an issue first to discuss the proposed changes.
To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your contribution.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your fork.
- Open a pull request to the
main
branch of this repository.
This project is licensed under the MIT License. Feel free to use, modify, and distribute this code as permitted by the license.
I hope you find this repository helpful in your journey to learn and grow with the AWS CDK and build powerful applications on AWS. If you have any questions or need further assistance, please feel free to reach out to me.
Happy building! 🚀