01Chapter 1: What serverless means and how Lambda is billedThis chapter assumes you can read basic Python, and that you know what JSON and HTTP APIs are. It also assumes you have an AWS account and can use the console or the AWS CLI. You should know what an IAM role is, but you don't need to write policies yet. You don't need to deploy anything in this chap7 min read
02Chapter 2: Writing a handler: event, context and return valuesThis chapter assumes you can write basic Python, read JSON, and know how an HTTP request and response are structured. It also assumes you have an AWS account and a rough idea of what an IAM role is. The examples use Python, but the model is the same in every Lambda runtime.5 min read
03Chapter 3: Configuring memory, timeout and environment variablesThis chapter covers the three settings that shape every Lambda function: how much memory it gets, how long it may run, and how it receives configuration. It assumes you can write a basic handler (the previous chapter), read JSON, and use the AWS console or CLI. It also assumes you have a general ide5 min read
04Chapter 4: Giving a function permissions with an execution roleThis chapter assumes you know what an IAM role and a policy document are, can read JSON policies, and have written a basic Lambda handler. By the end you will be able to attach the right permissions to a function, tell apart the two directions of Lambda access control, and diagnose the common `Acces6 min read
05Chapter 5: The execution environment lifecycle and reuseThis chapter assumes you can write a basic Lambda handler in Python, know what the event and context arguments are, and have set memory, timeout and environment variables on a function. Here you will learn what Lambda creates around your code, how long it lives, and how to write code that benefi7 min read
06Chapter 6: Synchronous, asynchronous and poll-based invocationThis chapter assumes you can write a handler, set memory and timeout, and attach an execution role. It covers the three ways Lambda runs a function, because the way a function is invoked decides who sees errors, how retries work, and where to put your handling logic.7 min read
07Chapter 7: Triggering functions from API Gateway, SQS and S3This chapter covers how a Lambda function gets connected to the services that start it. It assumes you know the three invocation types (synchronous, asynchronous and poll-based), the role of an execution role, and basic SAM syntax. Each trigger below follows a different invocation path. That path de6 min read
08Chapter 8: Handling failures: retries, DLQs, destinations and partial batch responsesThis chapter assumes you can write a handler, know the three invocation types (synchronous, asynchronous and poll-based), and understand execution roles. The retry rules differ for each invocation type, so the first step in handling a failure is to know which type triggered the function.7 min read
09Chapter 9: Understanding and reducing cold startsThis chapter assumes you can write a Lambda handler, set memory and timeout, and know that an execution environment is reused across invocations. It builds on the execution environment lifecycle and on function configuration. By the end you should be able to tell when a cold start is hurting you, me6 min read
10Chapter 10: Concurrency limits, reserved and provisioned concurrencyThis chapter assumes you can write and deploy a Lambda function, and that you know the execution environment lifecycle and the difference between synchronous, asynchronous and poll-based invocation from the earlier chapters. It also assumes you know what a cold start is. Here you will learn how Lamb6 min read
11Chapter 11: Packaging code: zip archives, layers and container imagesLambda needs your code and its dependencies in a form it can unpack into an execution environment. You can supply them as a zip archive, as one or more layers added to a zip function, or as a container image. This chapter covers how each option works, its limits, and how to choose.5 min read
12Chapter 12: Deploying repeatably with AWS SAMThis chapter assumes you can write a Lambda handler, know what memory, timeout and an execution role do, and have the AWS CLI configured with credentials. It also assumes you have installed the SAM CLI and Docker. Docker is only needed for local invocation and container builds.5 min read
13Chapter 13: Observing functions with CloudWatch and X-RayThis chapter assumes you can deploy a function with SAM, understand its execution role, and know how invocation types differ. It covers the three signals Lambda produces (logs, metrics and traces), how to configure each, and how to use them to find a failing or slow function.5 min read
14Chapter 14: Connecting functions to VPC resourcesThis chapter assumes you know what a VPC, a subnet, a route table and a security group are. It also assumes you have read the earlier chapters on the execution role and cold starts. You will learn how to give a function a network path to private resources such as an RDS database, and how to keep its6 min read