Episode 0: Introduction to AWS CDK & CloudFormation

Complete beginner's guide to developing and managing operations on AWS.

·

3 min read

In the next couple of episodes we will explore functions of AWS and develop the below architecture.

AWS Appreciation Dashboard.drawio.png

Project Idea: We will be building a simple website that has a public read on content but a needs a authorization for performing of adding content. For every content that is added, the author should receive an email. As for the content, the author is allowed to include a text and a single image for a single post.

The whole architecture will be deployed using CDK as such, we can simply run cdk deploy it will create the whole architecture for you in the AWS and destroy using cdk destroy.

Here is the list of episodes:

  • E1 Creation of Lambda that reads the data from DynamoDB
  • (Optional) [E2 Episode 2: Introduction to AWS CDK & CloudFormation]
  • E3 Creation of API Gateway that invokes Lambda on the default path
  • E4 Creation of Lambda that writes the data from DynamoDB and integration with existing Lambda
  • E5 SNS to send email triggered when Write lambda function is invoked.
  • E6 Hosting a static (dummy) website using S3 with public access
  • E7 Integrating Amplify with the static website to perform read Lambda
  • E8 Integrating static website with Cognito to perform registration, log in etc
  • E9 Static website to allow for adding image to S3 with user centric image.
  • E10 Static Website to write content & image grouping per user

In each episode, we will do hands-on on creating the resources manually and then we will also write a CDK scripts using typescript such that for the following episodes we can simple resume by running cdk deploy and continue on.

For the Architecture design and analysis, we will have a separate series that explores different architecture for different projects and why it matters. Meanwhile, feel free to read: aws.amazon.com/blogs/architecture

For rest part of this episode we will ensure we have all setup such that doing the rest of the episodes is just a breeze.

Prerequisite:

  • Ensure you have a AWS accounts, it will be good it is in the first year as such we can use the free tier and you have minimum bill. However be aware we are using complete server-less modal i.e. it is pay per use.

  • The updates to the episode will be in the following github repo, feel free to raise a PR if there are any better suggestion you may have:

github.com/shah-smit/cdk-cloud-formation-ap..

  • As this is completely meant for beginners, but having knowledge of the AWS services will make it easier to understand why services were selected.

  • Download and install AWS CLI and AWS CDK

  • Once AWS CLI is installed, ensure you have configured with the access-key and secret.

Episodes will be published every week, and full series will be available by end of November 2021.

Feel free to like, share and comment!