We have reached Chapter 33: Projects to Consolidate, one of the most valuable in Part VIII. Because there is an inescapable truth in this craft: you learn by building. You can read the whole book and understand it, but until you build something real with your own hands, the knowledge doesn't fully settle. This chapter proposes four projects, from least to most complex, that tie together everything you've learned. We start with the most accessible and perfect for beginners: a serverless blog, where you'll combine S3, CloudFront, Lambda, and DynamoDB.

Why projects are so important

Before the project, let's understand its value. Reading and understanding is necessary, but insufficient: true knowledge is consolidated by applying it. Building a real project forces you to:

   What building a project gives you (and theory doesn't):
   ✓ Bringing together many pieces you studied separately
   ✓ Facing real problems (and solving them)
   ✓ Truly understanding how services fit together
   ✓ Having something TANGIBLE to show (portfolio)
   ✓ Gaining real CONFIDENCE (not just theoretical)

Analogy: studying without building is like reading every book about how to ride a bike without ever getting on one. No matter how much you understand the theory of balance and pedaling, you won't know how to ride until you get on, wobble, maybe fall a couple of times, and finally succeed. Projects are "getting on the bike": where theoretical knowledge becomes real skill.

💡 About these projects: the idea is not to give you the exact code step by step (you'll find that in tutorials and documentation), but to show you what to build, which services to combine, and how the book's concepts fit together. The challenge of implementing it is precisely where you learn.

The project: a serverless blog

The first project is a serverless blog: a website where you can read articles, built without managing any servers (remember the serverless philosophy from Chapter 14). It's ideal to start with because it's simple, cheap (almost everything fits in the free tier), and combines several fundamental services in a clear way.

   What you'll build: a blog where
   - visitors see the website (fast, worldwide)
   - articles are displayed
   - all WITHOUT servers to maintain (serverless)

The pieces and how they fit together

This project combines four services you already know, each with its role:

S3: hosting the website (static files)

S3 (Chapter 5) stores the website files (HTML, CSS, images... the "static" part that doesn't change). Remember that S3 can serve a static website directly. It's your blog's "warehouse": cheap, durable, and serverless.

S3 → stores and serves the website files (HTML, CSS, images)

CloudFront: delivering the website fast worldwide

CloudFront (subchapter 16.2), AWS's CDN, serves the website from locations close to each visitor, making it fast globally. It also provides HTTPS (remember ACM, subchapter 16.3). You put CloudFront "in front" of S3.

Visitor → CloudFront (close and fast, with HTTPS) → S3 (the files)

Lambda: the logic (the dynamic part)

Lambda (Chapter 14) runs the logic of the blog without servers: for example, a function that fetches the articles when someone requests them. It's the "dynamic" part (that does things), and runs only when needed, scaling automatically.

"Give me the articles" request → Lambda (fetches the data) → responds

DynamoDB: storing the data (the articles)

DynamoDB (the serverless NoSQL database we saw in Chapter 8) stores the blog articles. It's serverless (fits perfectly with the rest), fast, and self-managed.

DynamoDB → stores the blog articles (the database)

The complete architecture

This is how the four pieces fit together in a coherent system:

   Visitor
      │
      ▼
   CloudFront (fast, global, HTTPS)
      │
      ├──► S3 (the website: HTML, CSS, images)
      │
      └──► Lambda (the logic: fetch articles)
                 │
                 ▼
            DynamoDB (the stored articles)

The visitor arrives via CloudFront; the website (from S3) loads quickly; when they request the articles, a Lambda fetches them from DynamoDB. All serverless: not a single server to maintain, it scales automatically, and costs very little (pay per use).

What you practice and consolidate

This project, despite its simplicity, makes you bring together and reinforce many key concepts:

   Book concepts you consolidate:
   - S3 and static websites (Ch. 5)
   - CloudFront and CDN (Ch. 16) + HTTPS with ACM (Ch. 16.3)
   - Lambda and serverless (Ch. 14)
   - DynamoDB / NoSQL (Ch. 8)
   - And all deployed with Terraform! (Parts II-V)

💡 Do it with Terraform: deploy this entire project with Terraform (what you learned in Parts II-V), instead of manually through the console. This way you consolidate both AWS and infrastructure as code. It's the best possible practice: you build something real and do it professionally.

Real world example: someone who just finished the book wants to reinforce what they've learned and have something to show in interviews. They decide to build their personal blog as a serverless blog: storing their articles in DynamoDB, the logic in Lambda, the website in S3, and serving it with CloudFront, all defined in Terraform. While building it, they encounter real problems (how to connect CloudFront with S3, how to give Lambda permissions to read DynamoDB...) and by solving them truly understand how the pieces fit together, much better than just reading about it. They end up with a real, working, super cheap blog, and a portfolio project that proves they know how to build on AWS with Terraform. That "learning by doing" gives them a confidence that theory alone never could.

What you should remember

  • You learn by building: reading and understanding is necessary but insufficient; knowledge is consolidated by applying it in real projects. Like learning to ride a bike by getting on, not just reading.
  • The serverless blog is an ideal project to start with: simple, cheap (free tier), and combines fundamental services without managing servers.
  • It combines four pieces: S3 (hosts the static website, Ch. 5), CloudFront (serves it fast and globally with HTTPS, Ch. 16), Lambda (dynamic logic, Ch. 14), and DynamoDB (stores the articles, Ch. 8).
  • Architecture: the visitor arrives via CloudFront → website from S3 → for data, Lambda → which reads from DynamoDB. All serverless: scales automatically, costs little.
  • 💡 Deploy it with Terraform (Parts II-V) to consolidate AWS and infrastructure as code at the same time, and have a portfolio project.

In the next subchapter, we'll take it up a notch with a more complete project: a REST API with containers (ECS Fargate, RDS, and ALB).

Cloud, AWS & Terraform — From Zero to Expert

Chapter 1 · What is cloud computing

Chapter 2 · The cloud market and major providers

Chapter 3 · Regions, availability zones and edge

Chapter 4 · Compute: EC2

Chapter 5 · Storage: S3

Chapter 6 · Networking: VPC

Chapter 7 · Identity and access: IAM

Chapter 8 · Managed databases

Chapter 9 · Why Infrastructure as Code

Chapter 10 · HCL: the Terraform language

Chapter 11 · Providers and state

Chapter 12 · Your first real infrastructure in Terraform

Chapter 13 · Load balancing and auto scaling

Chapter 14 · Serverless with Lambda

Chapter 15 · Messaging and events

Chapter 16 · Content delivery and DNS

Chapter 17 · Containers on AWS

Chapter 18 · Modules: reuse and composition

Chapter 19 · Workspaces and environment management

Chapter 20 · Remote backends and locking

Chapter 21 · Infrastructure testing

Chapter 22 · Terraform in CI/CD

Chapter 23 · Defense in depth

Chapter 24 · Observability: logs, metrics and traces

Chapter 25 · Cost optimization

Chapter 26 · High availability and disaster recovery

Chapter 27 · AWS Well-Architected Framework

Chapter 28 · Serverless architectures at scale

Chapter 29 · Data platforms on AWS

Chapter 30 · Multi-account and landing zones

Chapter 31 · Platform Engineering and Internal Developer Platform

Chapter 32 · Relevant AWS certifications

Chapter 33 · Projects to consolidate what you've learned

Chapter 34 · Resources and community

© Copyright 2024. All rights reserved