Skip to content

PChol22/learn-serverless-dev-to

Repository files navigation

Code example for my series "Learn serverless on AWS step-by-step"

TL;DR

This repository contains the code examples for my series "Learn serverless on AWS step-by-step". It is written using Typescript and the AWS CDK. To each article corresponds a new CDK stack.

How to use

npm i
npm run cdk bootstrap
npm run deploy # deploy all stacks
# or
npm run cdk deploy <stack-name> # deploy a specific stack

Organization

All the stacks can be deployed independently, except for:

  • 07-EventBridge
  • 08-SQS
  • 11-DynamoDBStreams

These stacks need stack 06-SES to be deployed first (because they use the email identity created in stack 06-SES). You can work around this by deploying the SES identity directly from each stack, but be careful to not deploy it twice (it will fail)

AWS Billing

🚨 Some resources deployed in this repository are not covered by the AWS Free Tier (but still cheap):

  • 1 Secret in AWS Secrets Manager (~0.50$/month)
  • 1 Hosted Zone in Route53 (~0.50$/month)
  • 1 Aurora Serverless DB cluster (~0$/month with autoPause)

For comparison, on my personal account, I pay ~1$/month to keep all the resources deployed in this repository.

Missing articles

🚨 Some articles (basically those that need a frontend) are in a dedicated repository. I linked the corresponding repository in each affected folder.

Articles

Part 1 - Lambda functions

Part 2 - DynamoDB

Part 3 - S3

Part 4 - Cognito

Part 5 - Step Functions

Part 6 - SES

Part 7 - EventBridge

Part 8 - SQS

Part 9 - Aurora Serverless

Part 10 - SNS

Part 11 - DynamoDB Streams

Part 12 - Deploying a frontend

Part 13 - Strongly typed Lambda functions

Part 14 - Master DynamoDB

Part 15 - Upload files on S3

Part 16 - Lambda Destinations

Part 17 - EventBridge Scheduler

About

All the code of the examples showcased in my "Learn Serverless on AWS step-by-step" series on dev.to

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published