Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

AWS in Production

This book is 100% completeLast updated on 2026-05-28

The AWS documentation tells you how every parameter works. It does not tell you which ones matter, what breaks first, or how you will know before your users do. That knowledge is only earned by running these systems at scale.

AWS in Production is twenty years of that — Lambda, API Gateway, IAM, DynamoDB, Step Functions, ECS Fargate, KMS, and CloudWatch, in the depth that production systems actually demand. Written by an engineer who has scaled payment infrastructure to 10 million daily transactions and learned every hard lesson that comes after the deployment.

Minimum price

$19.00

$29.00

You pay

Author earns

$
PDF
EPUB
WEB
About

About

About the Book

The AWS documentation tells you how every parameter works. It does not tell you which ones matter, in what order to learn them, or what breaks first under production load. That knowledge is only earned by running these systems at scale.

This book is twenty years of that.

Joel Bryan Juliano has scaled payment platforms to ten million daily transactions, built antivirus engines processing billions of threat signals, and operated large-scale data pipelines for national tax infrastructure. Most of that work has run on AWS. Over time, he learned which services to reach for, which patterns hold under pressure, and which shortcuts come back to page you at 3am.

AWS in Production follows a single application — an order processing system — from a blank AWS account to a fully instrumented, secure, auto-scaling production deployment. Every chapter adds one layer of capability. Every pattern reflects a decision that has been made, broken, and corrected in real systems.

The book covers DNS with Route 53, serverless compute with Lambda, traffic routing with API Gateway, access control with IAM, storage with S3, messaging with SNS and SQS, DynamoDB as a primary database, JWT authentication with Cognito, secrets management, encryption with KMS, containerized workloads with ECS Fargate, and production-grade observability with CloudWatch. Advanced chapters cover Step Functions patterns used in real financial and fulfillment systems: the Saga pattern for distributed transactions, Distributed Map for bulk processing, and WaitForTaskToken for human-in-the-loop workflows.

This book does not cover everything. It covers the right things — at the depth required to operate them safely.

Author

About the Author

Joel Bryan Juliano

Hi, I'm Joel.

I am Senior Software Engineer with 20+ years of experience.

And with over 20 years in the game, I’ve seen it all and loved every minute of it.

Originally from the Philippines, I am now a Dutchman living in Amsterdam together with my family.

My journey has taken me through a variety of industries, from sports streaming to cybersecurity, and everything in between.

Along the way, I’ve picked up a diverse set of skills and experiences, in which I document into books.

Contents

Table of Contents

AWS in Production

About This Book

Dedication

About the Author

Acknowledgements

Introduction

  1. Why I Wrote This Book
  2. Who This Book Is For
  3. What This Book Covers
  4. The Project Thread
  5. Tools You Will Need
  6. A Note on Cost
  7. On Code Examples
  8. One Thing Before You Start
  9. Part 1: Core Serverless

Route 53 — DNS & Routing Basics

  1. What You’ll Learn
  2. Prerequisites
  3. Why Start Here
  4. How DNS Works
  5. Concepts
  6. Hands-On: Point a Custom Domain at an S3 Static Website
  7. Production Patterns
  8. Key Takeaways
  9. What’s Next

Lambda — Functions & Execution Model

  1. What You’ll Learn
  2. Prerequisites
  3. Why Lambda Changes the Architecture
  4. Concepts
  5. Hands-On: Deploy Your First Function
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

API Gateway — Building HTTP APIs

  1. What You’ll Learn
  2. Prerequisites
  3. Why API Gateway
  4. Concepts
  5. Hands-On: HTTP API with Lambda, Custom Domain, and CORS
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

CloudWatch Intro — Logs & Metrics

  1. What You’ll Learn
  2. Prerequisites
  3. Why Observability Comes Before More Features
  4. Concepts
  5. Hands-On: Error Rate Alarm with Email Notification
  6. Structured Logging Pattern
  7. Key Takeaways
  8. What’s Next

Step Functions — Orchestrating Workflows

  1. What You’ll Learn
  2. Prerequisites
  3. The Problem Step Functions Solves
  4. Concepts
  5. Hands-On: Order Processing Pipeline
  6. Key Takeaways
  7. What’s Next

Infrastructure as Code with Serverless Framework

  1. What You’ll Learn
  2. Prerequisites
  3. Why Infrastructure as Code
  4. Choosing Your Tool
  5. Installing Serverless Framework
  6. Concepts
  7. Hands-On: Deploy the Part 1 Project with Serverless Framework
  8. Key Takeaways
  9. Part 2: AWS Services

IAM — Identity & Access Management

  1. What You’ll Learn
  2. Prerequisites
  3. Why IAM Is the Most Important Service You’ll Ever Misconfigure
  4. Concepts
  5. Hands-On: Audit and Fix the Part 1 Roles
  6. Cross-Account Access
  7. Common IAM Anti-Patterns
  8. Key Takeaways
  9. What’s Next

ELB — Elastic Load Balancing

  1. What You’ll Learn
  2. Prerequisites
  3. Why a Load Balancer
  4. Concepts
  5. VPC Quick Start
  6. Hands-On: ALB in Front of a Lambda Function
  7. Production Patterns
  8. Key Takeaways
  9. What’s Next

S3 — Object Storage

  1. What You’ll Learn
  2. Prerequisites
  3. S3 Is Not a File System
  4. Concepts
  5. Hands-On: Upload Pipeline with Lambda Processing
  6. Key Takeaways
  7. What’s Next

SNS — Simple Notification Service

  1. What You’ll Learn
  2. Prerequisites
  3. The Pub/Sub Mental Model
  4. Concepts
  5. Hands-On: Add Fan-Out to the Order Pipeline
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

SQS — Simple Queue Service

  1. What You’ll Learn
  2. Prerequisites
  3. Why a Queue
  4. Concepts
  5. Hands-On: Async Job Queue for Image Processing
  6. Key Takeaways
  7. What’s Next

DynamoDB — NoSQL at Scale

  1. What You’ll Learn
  2. Prerequisites
  3. DynamoDB Is Not a Relational Database
  4. Concepts
  5. Single-Table Design
  6. Hands-On: Order Store with Single-Table Design
  7. Key Takeaways
  8. What’s Next
  9. Part 3: Security & Auth

JWT — Token-Based Authentication

  1. What You’ll Learn
  2. Prerequisites
  3. The Authentication Problem
  4. Concepts
  5. Hands-On: Protect the Order API with Cognito
  6. Common Mistakes
  7. Key Takeaways
  8. What’s Next

Secret Management — SSM Parameter Store & Secrets Manager

  1. What You’ll Learn
  2. Prerequisites
  3. The Credential Anti-Pattern
  4. Concepts
  5. Hands-On: Migrate Hardcoded Config to SSM
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

API Keys Transport — KMS & Secure Key Distribution

  1. What You’ll Learn
  2. Prerequisites
  3. Two Different Problems
  4. Concepts
  5. Secure API Key Vending
  6. Audit Trail
  7. Key Takeaways
  8. Part 4: Containers

ECR — Elastic Container Registry

  1. What You’ll Learn
  2. Prerequisites
  3. Why a Private Registry
  4. Concepts
  5. Hands-On: Push Your First Application Image to ECR
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

Docker on AWS

  1. What You’ll Learn
  2. Prerequisites
  3. The Cost of a Naive Dockerfile
  4. Concepts
  5. Hands-On: Production Dockerfile for the API Service
  6. Key Takeaways
  7. What’s Next

ECS — Container Orchestration

  1. What You’ll Learn
  2. Prerequisites
  3. From Lambda to Containers
  4. Concepts
  5. Hands-On: Deploy the API Service to ECS Fargate
  6. Production Patterns
  7. Key Takeaways
  8. Part 5: Advanced

Advanced CloudWatch — Dashboards, Alarms & Insights

  1. What You’ll Learn
  2. Prerequisites
  3. The Difference Between Monitoring and Observability
  4. Concepts
  5. Hands-On: Production Operations Dashboard
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

Step Functions Advanced — Complex State Machines

  1. What You’ll Learn
  2. Prerequisites
  3. Where Step Functions Earns Its Place
  4. Concepts
  5. Hands-On: High-Value Order Approval Workflow
  6. Production Patterns
  7. Key Takeaways

CI/CD — Deploying to AWS from GitHub Actions

  1. What You’ll Learn
  2. Prerequisites
  3. Why Automate Deployments
  4. Concepts
  5. Hands-On: Complete CI/CD Pipeline
  6. Production Patterns
  7. Key Takeaways
  8. What’s Next

Appendix A — Complete System Architecture

  1. The Order Processing Platform
  2. Architecture Diagram
  3. Service-to-Chapter Map
  4. Request Flow: POST /orders (happy path)
  5. Request Flow: POST /orders with amount > €500 (approval path)
  6. Data Model: DynamoDB Single-Table (AppData)
  7. IAM Role Map

Appendix B — Code Reference

  1. Project Structure
  2. Lambda Bootstrap Pattern
  3. Config Loading from SSM (Chapter 14)
  4. DynamoDB Single-Table Helpers (Chapter 12)
  5. SQS Consumer with ReportBatchItemFailures (Chapter 11)
  6. API Key Validation (Chapter 15)
  7. Embedded Metric Format (Chapter 19)
  8. Health Check Handler (Chapter 17)
  9. Dockerfile (Chapter 17)
  10. Makefile
  11. serverless.yml (Chapter 6)
  12. CloudWatch Logs Insights — Saved Queries
  13. AWS CLI Quick Reference

Appendix C — Cost & Limits Reference

  1. Free Tier Summary (per month, perpetual unless noted)
  2. Cost Estimates for This Book’s Architecture
  3. Service Limits (Soft = Adjustable, Hard = Fixed)
  4. When to Request a Limit Increase
  5. Cost Anomaly Detection

Appendix D — VPC in 10 Minutes

  1. The Default VPC
  2. The Three Building Blocks
  3. Security Groups vs Network ACLs
  4. VPC Endpoints
  5. Key Takeaways

Glossary

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub