AWS guide
The AWS guide explains how to build and deploy services on AWS with the Serverless Framework, one topic per page. New to the Framework? Start with Serverless Framework concepts, or install it with Setting up the Serverless Framework.
Basics
- Serverless Framework concepts: services, functions, events and resources, and how they fit together.
- AWS credentials: give the Framework access to your AWS account, with profiles, SSO or Dashboard Providers.
- Services: the
serverless.ymlfile and how to organise a project into services. - AWS Lambda functions: runtimes, memory, timeouts, environment variables, function URLs, architectures and other function settings.
- AWS Lambda events: how events trigger functions. Each event source has its own page, such as HTTP API, SQS, S3 and Schedule.
- AWS infrastructure resources: add CloudFormation resources such as DynamoDB tables and S3 buckets, and override generated ones.
- IAM permissions for functions: the IAM role the Framework creates for your functions, a role you supply instead, and per-function roles.
Build, test and deploy
- Deploying to AWS:
serverless deployandserverless deploy function, stages and Regions. - Packaging: what goes into each deployment package, and packaging functions individually.
- Build configuration: bundle JavaScript and TypeScript with esbuild.
- Python support: bundle Python dependencies from
requirements.txt, Pipenv, Poetry or uv projects. - Dev Mode: run functions locally against live AWS events.
- Testing: write testable Lambda function code.
- AWS Lambda layers: publish and use Lambda layers.
- Lambda version pruning: delete old Lambda function versions, and optionally layer and sandbox image versions.
AWS features
- Custom domains: serve APIs and web apps from your own domain, with certificates and DNS records.
- CloudWatch alerts: create CloudWatch alarms for your functions.
- API Gateway AWS service proxy: connect API Gateway straight to AWS services without a function.
- AppSync: deploy GraphQL APIs with resolvers, data sources and authentication.
- Web Apps (Lambda Web Functions): deploy HTTP servers such as Express, Fastify and Next.js to Lambda.
- Sandboxes (Lambda MicroVMs): run container workloads in isolated MicroVMs.
- MCP Servers: deploy Model Context Protocol servers.
- AI Agents: deploy agents on Amazon Bedrock AgentCore.
- AWS Lambda Managed Instances: run functions on AWS-managed EC2 instances.
Reference
- serverless.yml reference: every property, in one annotated file.
- CLI reference: every
serverlesscommand and its options.