{"slug": "serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus", "title": "Serverless Framework v4.47: 30-minute Lambda timeouts, JWT authorizers, GPUs", "summary": "Serverless Framework v4.47.0 adds support for AWS Lambda's new 30-minute function timeout, raising the configurable limit to 1800 seconds for functions and Dev Mode, after AWS lifted the cap on November 19, 2026. The release also exposes API Gateway JWT authorizers for REST APIs, launched by AWS on November 17, 2026, letting API Gateway validate tokens from any OpenID Connect or OAuth 2.0 identity provider without a Lambda authorizer for http events, MCP servers and service proxies. The version further adds NVIDIA GPU support on Lambda Managed Instances for model inference, media processing and rendering, scale-to-zero for Managed Instances, and customer-managed runtimes published through a runtime alias.", "body_md": "Serverless Framework v4.47.0 is out. It brings the latest AWS Lambda and API Gateway capabilities to `serverless.yml`:\n\n- **Function timeouts up to 30 minutes.** Functions, and Dev Mode, now wait up to 1800 seconds.\n- **JWT authorizers for REST APIs.** API Gateway validates tokens from any OpenID Connect or OAuth 2.0 identity provider, with no Lambda authorizer, for`http` events, MCP servers and service proxies.\n- **GPUs on Lambda Managed Instances.** Container image functions run on NVIDIA GPUs for model inference, media processing and rendering.\n- **Managed Instances scale to zero.** Functions on a capacity provider stop their instances when nobody calls them.\n- **Customer-managed runtimes.** Functions run on a runtime your platform team publishes and updates through a runtime alias.\n\nYour 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.\n\n- [Timeout limits](https://www.serverless.com/framework/docs/providers/aws/guide/functions#timeout-limits) - function timeouts up to 30 minutes and how callers wait\n- [JWT authorizers](https://www.serverless.com/framework/docs/providers/aws/events/apigateway#jwt-authorizers) - settings, issuers, claim rules, scopes and migration\n- [MCP server authorization](https://www.serverless.com/framework/docs/providers/aws/guide/mcp#jwt-authorizers) - JWT authorizers and OAuth discovery for MCP servers on Lambda\n- [GPUs on Managed Instances](https://www.serverless.com/framework/docs/providers/aws/guide/managed-instances#run-functions-on-gpus) - GPU instance types, memory, scaling and quotas\n- [Scale to zero](https://www.serverless.com/framework/docs/providers/aws/guide/managed-instances#scale-to-zero) - Managed Instances functions that stop their instances when idle\n- [Customer-managed runtimes](https://www.serverless.com/framework/docs/providers/aws/guide/functions#customer-managed-runtimes) - runtimes your platform team publishes through an alias\n- [Release notes](https://github.com/serverless/serverless/releases/tag/sf-core%404.47.0) - everything else in v4.47.0\n\n## [Function timeouts up to 30 minutes](#function-timeouts-up-to-30-minutes)\n\nOn November 19, 2026, AWS [raised the Lambda function timeout to 30 minutes](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-30-minute-ondemand-event-functions/), 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:\n\n```\nfunctions:\n  report:\n    handler: report.handler\n    timeout: 1800 # seconds\n```\n\nDev 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`.\n\n## [JWT authorizers for REST APIs](#jwt-authorizers-for-rest-apis)\n\nMost 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](https://docs.aws.amazon.com/apigateway/latest/developerguide/rest-api-jwt-authorizer.html), which AWS [launched on November 17, 2026](https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-api-gateway-rest-jwt-authorizers/). 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:\n\n```\nprovider:\n  apiGateway:\n    authorizers:\n      orders:\n        type: jwt\n        issuerUrl: https://acme.us.auth0.com/\n        audience: https://api.acme.com/orders\n        algorithms: [RS256]\n\nfunctions:\n  listOrders:\n    handler: orders.list\n    events:\n      - http:\n          path: orders\n          method: get\n          authorizer:\n            name: orders\n            scopes: [orders:read]\n```\n\nReplace `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:\n\n```\ncurl -H \"Authorization: Bearer $TOKEN\" https://abcdefghij.execute-api.us-east-1.amazonaws.com/dev/orders\n```\n\nAPI 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`:\n\n```\nprovider:\n  name: aws\n  apiGateway:\n    authorizers:\n      partners:\n        type: jwt\n        algorithms:\n          - rs256\n        issuers:\n          - issuerUrl: https://login.microsoftonline.com/${param:entraTenantId}/v2.0\n            audience: api://orders\n          - issuerUrl: https://my-tenant.us.auth0.com/\n            audience:\n              - https://api.example.com/orders\n              - https://api.example.com/reports\n```\n\nWith 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.\n\nMoving 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.\n\n### [MCP servers and service proxies](#mcp-servers-and-service-proxies)\n\nThe 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:\n\n```\nprovider:\n  name: aws\n  domain: mcp.example.com\n  apiGateway:\n    authorizers:\n      agents:\n        type: jwt\n        issuerUrl: https://my-tenant.us.auth0.com/\n        audience: https://mcp.example.com/crm/mcp\n        algorithms:\n          - rs256\n\nmcp:\n  servers:\n    crm:\n      server: src/server.mjs\n      authorizer:\n        name: agents\n        scopes:\n          - crm:read\n      oauthDiscovery: {}\n```\n\nAPI 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.\n\n## [GPUs on Lambda Managed Instances](#gpus-on-lambda-managed-instances)\n\nAWS [added GPU instances to Lambda Managed Instances](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-gpu-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:\n\n```\nservice: my-gpu-service\n\nprovider:\n  name: aws\n  region: us-east-1\n  vpc:\n    subnetIds:\n      - subnet-0a1b2c3d4e5f60718\n      - subnet-0f1e2d3c4b5a69788\n    securityGroupIds:\n      - sg-0123456789abcdef0\n  ecr:\n    images:\n      inference:\n        path: ./\n        provenance: 'false'\n  capacityProviders:\n    gpu:\n      instanceRequirements:\n        allowedInstanceTypes:\n          - g6.xlarge\n          - g5.xlarge\n\nfunctions:\n  infer:\n    image: inference\n    memorySize: 8192\n    timeout: 300\n    capacityProvider:\n      name: gpu\n      memoryPerVCpu: 4\n      gpu:\n        memory: 24\n```\n\nLambda 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:\n\n```\nFROM public.ecr.aws/lambda/deep-learning-containers/pytorch:cuda\nCOPY handler.py ${LAMBDA_TASK_ROOT}/\nCMD [\"handler.handler\"]\n```\n\nBefore 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.\n\n## [Scale to zero](#scale-to-zero)\n\nAWS [added scale to zero to Lambda Managed Instances](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-managed-instances-scale-to-zero/) 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:\n\n```\nfunctions:\n  report:\n    handler: handler.handler\n    capacityProvider:\n      name: default\n      scaling:\n        min: 0\n        max: 10\n```\n\nLambda 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.\n\n## [Customer-managed runtimes](#customer-managed-runtimes)\n\nAWS [launched customer-managed runtimes](https://aws.amazon.com/about-aws/whats-new/2026/11/aws-lambda-customer-managed-runtimes/) on November 18, 2026. A [customer-managed runtime](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-customer-managed.html) 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:\n\n```\nprovider:\n  name: aws\n  region: us-east-1\n  runtime: arn:aws:lambda:us-east-1:123456789012:runtime/company-node24/alias/prod\n\nfunctions:\n  api:\n    handler: index.handler # the handler format is defined by the runtime publisher\n  legacy:\n    handler: handler.main\n    runtime: nodejs26.x # a function's own runtime overrides provider.runtime\n```\n\n`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.\n\nThe 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.\n\n## [Getting started](#getting-started)\n\nServerless 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.\n\nThen 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.\n\nYour coding agent can take it from here. In your service directory, run:\n\n```\nserverless agent skills install\n```\n\nThat 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.\n\nLearn more:\n\n- [Timeout limits](https://www.serverless.com/framework/docs/providers/aws/guide/functions#timeout-limits) - function timeouts up to 30 minutes and how callers wait\n- [JWT authorizers](https://www.serverless.com/framework/docs/providers/aws/events/apigateway#jwt-authorizers) - settings, issuers, claim rules, scopes and migration\n- [MCP server authorization](https://www.serverless.com/framework/docs/providers/aws/guide/mcp#jwt-authorizers) - JWT authorizers and OAuth discovery for MCP servers on Lambda\n- [GPUs on Managed Instances](https://www.serverless.com/framework/docs/providers/aws/guide/managed-instances#run-functions-on-gpus) - GPU instance types, memory, scaling and quotas\n- [Scale to zero](https://www.serverless.com/framework/docs/providers/aws/guide/managed-instances#scale-to-zero) - Managed Instances functions that stop their instances when idle\n- [Customer-managed runtimes](https://www.serverless.com/framework/docs/providers/aws/guide/functions#customer-managed-runtimes) - runtimes your platform team publishes through an alias\n- [Release notes](https://github.com/serverless/serverless/releases/tag/sf-core%404.47.0) - everything else in v4.47.0\n\nThere is a lot in this one. Upgrade, deploy, and let us know what you build.\n\n## [Also in v4.47.0](#also-in-v4470)\n\n- \n**Sandboxes on x86.** The new`sandboxes.<name>.architecture` setting builds and runs a sandbox's image on`x86_64` as well as on`arm64` (AWS Graviton), the default.\n- \n**Cognito inbound federation trigger.** The`cognitoUserPool` event accepts`trigger: 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.\n- \n**AgentCore Memory keeps events for up to 10 years.** A memory's`expiration` accepts 3 to 3650 days, following the[AWS launch on November 17, 2026](https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-bedrock-agentcore-memory-10-year-retention/) .\n- \n**Cleaner new projects from templates.** A project created from a template leaves out the files that serve only the examples repository, such as`example.json` and the top-level`test/` and`events/` folders, so the README starts at its title.\n- \n**Container image functions run on their capacity provider.** A function with`image` and`capacityProvider` now 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 with`CapacityProviderConfig isn't supported for Lambda Default functions` and rolls back, leaving the function as it was. Give the function a new`name` to move it, or remove`capacityProvider` to keep it standard.\n- \n**Fixes.**`serverless deploy` deploys again after a rolled-back update instead of skipping it, commands that stall now exit with an error instead of succeeding,`startingPosition: AT_TIMESTAMP` works for every Kinesis stream event, and Python`logging` messages show in`serverless invoke --log` and`serverless logs` .", "url": "https://wpnews.pro/news/serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus", "canonical_source": "https://www.serverless.com/blog/serverless-framework-v4-47-0", "published_at": "2026-11-30 19:21:52+00:00", "updated_at": "2026-11-30 19:47:11.384033+00:00", "lang": "en", "topics": ["developer-tools", "ai-infrastructure", "ai-agents", "ai-tools"], "entities": ["Serverless Framework", "Serverless Framework v4.47.0", "AWS Lambda", "Amazon API Gateway", "NVIDIA", "Amazon Cognito", "OpenID Connect", "OAuth 2.0"], "also_reported_by": [], "takeaway": "Serverless Framework v4.47.0 lets serverless.yml set function timeouts up to 1800 seconds, attach API Gateway JWT authorizers to http events and MCP servers without a Lambda authorizer, and run container-image functions on NVIDIA GPUs on Lambda Managed Instances.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus", "markdown": "https://wpnews.pro/news/serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus.md", "text": "https://wpnews.pro/news/serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus.txt", "jsonld": "https://wpnews.pro/news/serverless-framework-v4-47-30-minute-lambda-timeouts-jwt-authorizers-gpus.jsonld"}}