Serverless Framework v4.47.0 is out. It brings the latest AWS Lambda and API Gateway capabilities to serverless.yml:
- Function timeouts up to 30 minutes. Functions, and Dev Mode, now wait up to 1800 seconds.
- JWT authorizers for REST APIs. API Gateway validates tokens from any OpenID Connect or OAuth 2.0 identity provider, with no Lambda authorizer, for
httpevents, MCP servers and service proxies. - GPUs on Lambda Managed Instances. Container image functions run on NVIDIA GPUs for model inference, media processing and rendering.
- Managed Instances scale to zero. Functions on a capacity provider stop their instances when nobody calls them.
- Customer-managed runtimes. Functions run on a runtime your platform team publishes and updates through a runtime alias.
Your AI coding agent can use all of it. Every feature is a few lines in serverless.yml that your agent can write. serverless package catches config errors before anything deploys, with a message that says what to fix, and the bundled Agent Skills point your agent to the docs for your exact CLI version.
- Timeout limits - function timeouts up to 30 minutes and how callers wait
- JWT authorizers - settings, issuers, claim rules, scopes and migration
- MCP server authorization - JWT authorizers and OAuth discovery for MCP servers on Lambda
- GPUs on Managed Instances - GPU instance types, memory, scaling and quotas
- Scale to zero - Managed Instances functions that stop their instances when idle
- Customer-managed runtimes - runtimes your platform team publishes through an alias
- Release notes - everything else in v4.47.0
Function timeouts up to 30 minutes
On November 19, 2026, AWS raised the Lambda function timeout to 30 minutes, twice the old limit, so longer batch jobs, report generation and agent workloads no longer need to be split up or moved off Lambda. provider.timeout and functions.<name>.timeout accept up to 1800 seconds:
functions:
report:
handler: report.handler
timeout: 1800 # seconds
Dev Mode waits up to 30 minutes for an invocation as well, so serverless dev handles the same long-running work on your machine. A caller can still stop waiting sooner: an http or httpApi event answers the client within the API Gateway integration timeout, while the function keeps running until it returns or reaches its own timeout.
JWT authorizers for REST APIs
Most APIs on AWS Lambda check a token before they do anything else. On REST APIs, that has meant writing and running a Lambda authorizer, or tying your API to an Amazon Cognito user pool. API Gateway now validates JSON Web Tokens itself, with JWT authorizers for REST APIs, which AWS launched on November 17, 2026. v4.47.0 makes them a few lines of YAML. Define an authorizer once under provider.apiGateway.authorizers, reference it by name from your http events, and API Gateway checks every token before your function runs:
provider:
apiGateway:
authorizers:
orders:
type: jwt
issuerUrl: https://acme.us.auth0.com/
audience: https://api.acme.com/orders
algorithms: [RS256]
functions:
listOrders:
handler: orders.list
events:
- http:
path: orders
method: get
authorizer:
name: orders
scopes: [orders:read]
Replace issuerUrl with your issuer, exactly as it appears in your tokens' iss claim, and audience with the value of their aud claim. algorithms is required: list the algorithms your issuer signs tokens with. Callers send the token in the Authorization header:
curl -H "Authorization: Bearer $TOKEN" https://abcdefghij.execute-api.us-east-1.amazonaws.com/dev/orders
API Gateway answers a missing or invalid token with 401, and a valid token that lacks a required scope or fails a claim rule with 403. To accept tokens from several identity providers, or several tenants of one, list up to 10 under issuers, each with its own audience and optional additionalClaims:
provider:
name: aws
apiGateway:
authorizers:
partners:
type: jwt
algorithms:
- rs256
issuers:
- issuerUrl: https://login.microsoftonline.com/${param:entraTenantId}/v2.0
audience: api://orders
- issuerUrl: https://my-tenant.us.auth0.com/
audience:
- https://api.example.com/orders
- https://api.example.com/reports
With the default lambda-proxy integration, the function reads the validated token's claims in event.requestContext.authorizer.claims. API Gateway is still rolling out the delivery of claims across AWS Regions. Where it isn't available yet, event.requestContext.authorizer is null even though the token was validated, so check that claims arrive in your Region before your function relies on them.
Moving from a Lambda or Cognito user pool authorizer is one deploy: give the JWT authorizer a new name, define it under provider.apiGateway.authorizers, and point the events at it. The deploy creates the JWT authorizer, switches the endpoints to it, and removes the old authorizer once no endpoint uses it.
MCP servers and service proxies
The same authorizer protects an MCP server on Lambda. Reference it from the server, with its own scopes, and add oauthDiscovery: {} to publish the authorizer's issuers in the server's OAuth discovery document:
provider:
name: aws
domain: mcp.example.com
apiGateway:
authorizers:
agents:
type: jwt
issuerUrl: https://my-tenant.us.auth0.com/
audience: https://mcp.example.com/crm/mcp
algorithms:
- rs256
mcp:
servers:
crm:
server: src/server.mjs
authorizer:
name: agents
scopes:
- crm:read
oauthDiscovery: {}
API Gateway checks the token before the server runs, so a request without a valid token invokes nothing. One authorizer can serve several MCP servers and http events, each with its own scopes. API Gateway service proxies use it too, with authorizationType: JWT and a Ref to the authorizer.
GPUs on Lambda Managed Instances
AWS added GPU instances to Lambda Managed Instances on November 18, 2026. GPU functions run on Amazon EC2 G-series instances with NVIDIA GPUs. A GPU function needs three things: a container image, a capacity provider whose allowedInstanceTypes lists only GPU instance types, and capacityProvider.gpu.memory, the GPU memory in GB the function needs. This serverless.yml builds an image and runs it on NVIDIA L4 or A10G GPUs:
service: my-gpu-service
provider:
name: aws
region: us-east-1
vpc:
subnetIds:
- subnet-0a1b2c3d4e5f60718
- subnet-0f1e2d3c4b5a69788
securityGroupIds:
- sg-0123456789abcdef0
ecr:
images:
inference:
path: ./
provenance: 'false'
capacityProviders:
gpu:
instanceRequirements:
allowedInstanceTypes:
- g6.xlarge
- g5.xlarge
functions:
infer:
image: inference
memorySize: 8192
timeout: 300
capacityProvider:
name: gpu
memoryPerVCpu: 4
gpu:
memory: 24
Lambda launches the newest allowed generation whose GPU has enough memory, and gives each execution environment one GPU. List several generations, so Lambda can fall back to an older one when the newest has no capacity. The Dockerfile can start from one of the GPU base images AWS publishes with CUDA, PyTorch, vLLM or SGLang, or from any other image, since Lambda provides the GPU driver:
FROM public.ecr.aws/lambda/deep-learning-containers/pytorch:cuda
COPY handler.py ${LAMBDA_TASK_ROOT}/
CMD ["handler.handler"]
Before the first deploy, request an increase of the EC2 service quota Running On-Demand G and VT instances in the Region. Its default is 0 vCPUs, so Lambda can't launch a GPU instance until it is raised.
Scale to zero
AWS added scale to zero to Lambda Managed Instances on November 17, 2026. Managed Instances functions no longer have to keep instances running while nobody calls them. Set scaling.min to 0, with max above 0 or unset:
functions:
report:
handler: handler.handler
capacityProvider:
name: default
scaling:
min: 0
max: 10
Lambda stops the last execution environment after a period without invocations, and terminates an instance once no function on the capacity provider runs on it, so instance charges stop. The next invocation is throttled with HTTP 429 while Lambda starts an execution environment again, which typically takes a few minutes. Retry synchronous invocations with backoff, or keep min at 1 or more for latency-sensitive functions. The Framework applies scaling to each version a deploy publishes as well, and min: 0, max: 0 deactivates a function without deleting it.
Customer-managed runtimes
AWS launched customer-managed runtimes on November 18, 2026. A customer-managed runtime is a Lambda runtime that a team in your organization, or a third party, builds, publishes and updates, for example a Node.js runtime with your company's SDK and monitoring agent built in. Functions use it through a runtime alias and keep deploying .zip files. When the publisher moves the alias to a new runtime version, functions pick it up without a redeploy. Set runtime, on the provider or a function, to the runtime alias ARN the publisher gives you:
provider:
name: aws
region: us-east-1
runtime: arn:aws:lambda:us-east-1:123456789012:runtime/company-node24/alias/prod
functions:
api:
handler: index.handler # the handler format is defined by the runtime publisher
legacy:
handler: handler.main
runtime: nodejs26.x # a function's own runtime overrides provider.runtime
runtime also accepts a CloudFormation intrinsic that returns an alias ARN, such as !Ref on an AWS::Lambda::RuntimeAlias the same service publishes, or !ImportValue of a stack output. A runtime ARN without /alias/ gets a configuration warning, and an alias from another Region stops packaging with an error. serverless deploy function updates the alias, and invoke local and serverless dev explain that these functions run the deployed code.
The principal that deploys the service needs lambda:AssociateRuntimeAlias on the runtime alias ARN, and a runtime in another AWS account must be shared with yours by its publisher. The function's execution role needs nothing new, but the runtime runs with that role's permissions, so use runtimes only from publishers you trust.
Getting started
Serverless Framework v4 updates itself, so unpinned projects already run v4.47.0. If you pin frameworkVersion to an exact version, raise it to 4.47.0.
Then set a longer timeout, add an authorizer under provider.apiGateway.authorizers, a gpu block to a capacity provider function, scaling.min: 0 or a runtime alias ARN, and deploy. If you deployed a container image function with capacityProvider on an earlier version, read the upgrade note in Also in v4.47.0 first.
Your coding agent can take it from here. In your service directory, run:
serverless agent skills install
That installs the bundled skills, including serverless-framework and serverless-mcp, into the agent directories your team already uses, such as .claude/skills/ or .agents/skills/, and re-running it updates them with each CLI release. If you use the Serverless agent plugin for Claude Code, serverless agent setup, serverless agent skills install and automatic updates no longer add a second copy of a skill the plugin already provides, so Claude Code lists each skill once.
Learn more:
- Timeout limits - function timeouts up to 30 minutes and how callers wait
- JWT authorizers - settings, issuers, claim rules, scopes and migration
- MCP server authorization - JWT authorizers and OAuth discovery for MCP servers on Lambda
- GPUs on Managed Instances - GPU instance types, memory, scaling and quotas
- Scale to zero - Managed Instances functions that stop their instances when idle
- Customer-managed runtimes - runtimes your platform team publishes through an alias
- Release notes - everything else in v4.47.0
There is a lot in this one. Upgrade, deploy, and let us know what you build.
Also in v4.47.0
-
Sandboxes on x86. The new
sandboxes.<name>.architecturesetting builds and runs a sandbox's image onx86_64as well as onarm64(AWS Graviton), the default. -
Cognito inbound federation trigger. The
cognitoUserPoolevent acceptstrigger: InboundFederation, which Amazon Cognito runs when a user signs in through an external SAML, OIDC or social identity provider, on new and existing user pools. -
AgentCore Memory keeps events for up to 10 years. A memory's
expirationaccepts 3 to 3650 days, following the AWS launch on November 17, 2026. -
Cleaner new projects from templates. A project created from a template leaves out the files that serve only the examples repository, such as
example.jsonand the top-leveltest/andevents/folders, so the README starts at its title. -
Container image functions run on their capacity provider. A function with
imageandcapacityProvidernow deploys on Lambda Managed Instances; before, the setting was ignored. Lambda doesn't move an existing standard function onto a capacity provider, so if you deployed one on an earlier version, its first deploy with 4.47.0 stops withCapacityProviderConfig isn't supported for Lambda Default functionsand rolls back, leaving the function as it was. Give the function a newnameto move it, or removecapacityProviderto keep it standard. -
Fixes.
serverless deploydeploys again after a rolled-back update instead of skipping it, commands that stall now exit with an error instead of succeeding,startingPosition: AT_TIMESTAMPworks for every Kinesis stream event, and Pythonloggingmessages show inserverless invoke --logandserverless logs.
