Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
node-version: 24
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.14'
python-version: '3.15'
- name: Install the Serverless Framework CLI
run: npm install --global serverless
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
node-version: 24
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.14'
python-version: '3.15'
- name: Install the Serverless Framework CLI
run: npm install --global serverless
- uses: aws-actions/configure-aws-credentials@e1253824e5c10ff9df46874f81ed3ec929e19cfd # v6.3.0
Expand Down
2 changes: 1 addition & 1 deletion aws-bedrock-agentcore/python/strands-browser/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.14-slim
FROM python:3.15-slim

WORKDIR /app

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "strands-browser-agent"
version = "1.0.0"
description = "Strands agent with AgentCore Browser for web automation"
requires-python = ">=3.14"
requires-python = ">=3.15"

dependencies = [
"bedrock-agentcore>=1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion aws-multiple-runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ authorAvatar: 'https://avatars0.githubusercontent.com/u/527924?v=4&s=140'
-->
# Multiple Runtimes Example

This example demonstrates how you can run multiple runtimes (Node.js and Python) side by side in the same Serverless Framework service. The `time` function runs on `nodejs24.x` and returns the current Unix timestamp; the `hello` function runs on `python3.14`, calls the `time` endpoint over HTTP, and renders a greeting with the formatted date.
This example demonstrates how you can run multiple runtimes (Node.js and Python) side by side in the same Serverless Framework service. The `time` function runs on `nodejs24.x` and returns the current Unix timestamp; the `hello` function runs on `python3.15`, calls the `time` endpoint over HTTP, and renders a greeting with the formatted date.

## Deploy

Expand Down
2 changes: 1 addition & 1 deletion aws-multiple-runtime/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ provider:

functions:
hello:
runtime: python3.14
runtime: python3.15
events:
- httpApi:
method: get
Expand Down
2 changes: 1 addition & 1 deletion aws-python-alexa-skill/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-auth0-custom-authorizers-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Custom Authorizers allow you to run an AWS Lambda Function before your targeted

## Setup

1. You must have Python 3.14! Third-party dependencies (`PyJWT`, `cryptography`) are bundled automatically at
1. You must have Python 3.15! Third-party dependencies (`PyJWT`, `cryptography`) are bundled automatically at
deploy time by the Framework's built-in Python requirements packaging (configured under
`custom.pythonRequirements` in `serverless.yml`) — no plugin needed. Run `npm install` once to pull in
`serverless-offline` for local testing.
Expand Down
2 changes: 1 addition & 1 deletion aws-python-auth0-custom-authorizers-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"description": "Demonstration of protecting API gateway endpoints with auth0",
"license": "MIT",
"devDependencies": {
"serverless-offline": "^14.7.4"
"serverless-offline": "^14.8.5"
}
}
11 changes: 6 additions & 5 deletions aws-python-auth0-custom-authorizers-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ package:

custom:
# Built-in python requirements packaging activates on this key.
# pipCmdExtraArgs forces pip to fetch Lambda-compatible (manylinux) wheels
# for arm64, regardless of the host OS/architecture running the deploy.
pythonRequirements:
# Download Linux arm64 wheels for Python 3.15 on any machine, so compiled
# dependencies (such as cryptography) match the Lambda architecture and runtime.
pipCmdExtraArgs:
- --platform
- manylinux2014_aarch64
- '--platform=manylinux2014_aarch64'
- '--platform=manylinux_2_28_aarch64'
- '--python-version=3.15'
- '--only-binary=:all:'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
region: us-east-1
environment:
Expand Down
4 changes: 2 additions & 2 deletions aws-python-flask-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This template deploys a [Flask](https://flask.palletsprojects.com/) application

## Prerequisites

- [Python](https://www.python.org/) 3.14 on your `PATH`: the deploy runs it to package the dependencies in `requirements.txt`.
- [Python](https://www.python.org/) 3.15 on your `PATH`: the deploy runs it to package the dependencies in `requirements.txt`.
- [Node.js](https://nodejs.org/), to install the Serverless Framework CLI (`npm i -g serverless`) and the `serverless-wsgi` plugin. See [Getting started](https://www.serverless.com/framework/docs/getting-started).
- An AWS account, with credentials configured on your machine. See [AWS credentials](https://www.serverless.com/framework/docs/providers/aws/guide/credentials).
- A Serverless account, or a license key in `SERVERLESS_LICENSE_KEY`. The CLI asks you to sign in the first time you run it.
Expand All @@ -51,7 +51,7 @@ endpoints:
ANY - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev/{proxy+}

functions:
api: aws-python-flask-api-dev-api (655 kB)
api: aws-python-flask-api-dev-api (657 kB)
```

The deploy prints the endpoint URLs, which end in the stage name: `https://<api-id>.execute-api.<region>.amazonaws.com/dev/` for the default `dev` stage.
Expand Down
11 changes: 9 additions & 2 deletions aws-python-flask-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ custom:
# built-in python requirements packaging (activated by custom.pythonRequirements below).
packRequirements: false
# Built-in python requirements packaging activates on this key.
pythonRequirements: {}
pythonRequirements:
# Download Linux arm64 wheels for Python 3.15 on any machine, so compiled
# dependencies (such as MarkupSafe) match the Lambda architecture and runtime.
pipCmdExtraArgs:
- '--platform=manylinux2014_aarch64'
- '--platform=manylinux_2_28_aarch64'
- '--python-version=3.15'
- '--only-binary=:all:'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
# Uncomment to easily set up a custom domain. Read the docs for more details:
# https://www.serverless.com/framework/docs/providers/aws/guide/domains
Expand Down
2 changes: 1 addition & 1 deletion aws-python-http-api-with-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
2 changes: 1 addition & 1 deletion aws-python-http-api-with-pynamodb/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package:

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
4 changes: 2 additions & 2 deletions aws-python-http-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This template deploys an HTTP API on AWS Lambda and API Gateway with Python. One

## Prerequisites

- [Python](https://www.python.org/) 3.14, to run the function locally and to package dependencies when you add them.
- [Python](https://www.python.org/) 3.15, to run the function locally and to package dependencies when you add them.
- [Node.js](https://nodejs.org/), to install the Serverless Framework CLI: `npm i -g serverless`. See [Getting started](https://www.serverless.com/framework/docs/getting-started).
- An AWS account, with credentials configured on your machine. See [AWS credentials](https://www.serverless.com/framework/docs/providers/aws/guide/credentials).
- A Serverless account, or a license key in `SERVERLESS_LICENSE_KEY`. The CLI asks you to sign in the first time you run it.
Expand All @@ -48,7 +48,7 @@ Deploying "aws-python-http-api" to stage "dev" (us-east-1)
endpoint: GET - https://xxxxxxxxxx.execute-api.us-east-1.amazonaws.com/

functions:
hello: aws-python-http-api-dev-hello (3.1 kB)
hello: aws-python-http-api-dev-hello (3.3 kB)
```

The deploy prints the endpoint URL, `https://<api-id>.execute-api.<region>.amazonaws.com/`.
Expand Down
2 changes: 1 addition & 1 deletion aws-python-http-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: "4"

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
# Uncomment to easily set up a custom domain. Read the docs for more details:
# https://www.serverless.com/framework/docs/providers/aws/guide/domains
Expand Down
14 changes: 6 additions & 8 deletions aws-python-line-echo-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ The webhook validates the `X-Line-Signature` header on every request (via `Webho

## Notes on packaging

`line-bot-sdk` v3 pulls in `pydantic` / `pydantic-core`, a native (Rust) extension. The
Lambda runtime is pinned to `python3.13` because `pydantic-core` has no `manylinux` wheel for
`python3.14` yet — packaging on a non-Linux host would otherwise silently bundle the host's
native wheel into the deployment artifact, crashing the function at cold start. `custom.pythonRequirements`
also pins `pipCmdExtraArgs` to `--platform manylinux2014_aarch64 --only-binary=:all:` (with
`useUv: false`, since `uv` doesn't accept pip's `--platform` flag) so packaging always fetches
prebuilt Linux wheels for the deployed architecture, and fails loudly instead of silently if a
compatible wheel isn't available.
`line-bot-sdk` v3 pulls in `pydantic` / `pydantic-core`, a native (Rust) extension. The function
runs on `python3.15` and `arm64`, so `custom.pythonRequirements.pipCmdExtraArgs` makes pip download
Linux arm64 wheels built for Python 3.15 (`--platform=manylinux2014_aarch64`,
`--platform=manylinux_2_28_aarch64`, `--python-version=3.15`, `--only-binary=:all:`) on any machine.
Without them, packaging on another platform would bundle the host's native wheel, which can't load in
Lambda; with them, packaging stops with an error if a compatible wheel isn't available.

![Echo bot](https://i.imgur.com/Tn1XS13.png)
13 changes: 6 additions & 7 deletions aws-python-line-echo-bot/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ package:

provider:
name: aws
# python3.13 until pydantic-core ships manylinux cp314 wheels (checked 2026-07-17)
runtime: python3.13
runtime: python3.15
architecture: arm64
environment:
CHANNEL_ACCESS_TOKEN: ${env:CHANNEL_ACCESS_TOKEN, 'YOUR_CHANNEL_ACCESS_TOKEN'}
Expand All @@ -25,10 +24,10 @@ functions:
custom:
# Built-in python requirements packaging activates on this key.
pythonRequirements:
# Force Linux wheels for the deploying (non-Linux) host so packaging fails loudly
# instead of silently bundling a host-platform native wheel (pydantic-core et al).
useUv: false
# Download Linux arm64 wheels for Python 3.15 on any machine, so compiled
# dependencies (such as pydantic-core) match the Lambda architecture and runtime.
pipCmdExtraArgs:
- --platform
- manylinux2014_aarch64
- '--platform=manylinux2014_aarch64'
- '--platform=manylinux_2_28_aarch64'
- '--python-version=3.15'
- '--only-binary=:all:'
4 changes: 2 additions & 2 deletions aws-python-pynamodb-s3-sigurl/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
title: 'AWS Serverless REST API with DynamoDB store and presigned URLs example in Python 3.14.'
title: 'AWS Serverless REST API with DynamoDB store and presigned URLs example in Python 3.15.'
description: 'This example demonstrates how to setup a RESTful Web Service allowing you to create, list, get, update and delete Assets. DynamoDB is used to store the data.'
layout: Doc
framework: v4
Expand Down Expand Up @@ -88,7 +88,7 @@ The expected result should be similar to:
```bash
%> sls deploy
Serverless: Parsing Python requirements.txt
Serverless: Installing required Python packages for runtime python3.14...
Serverless: Installing required Python packages for runtime python3.15...
Serverless: Linking required Python packages...
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Expand Down
2 changes: 1 addition & 1 deletion aws-python-pynamodb-s3-sigurl/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ custom:

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
region: us-east-1
environment:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-rest-api-with-dynamodb/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
environment:
DYNAMODB_TABLE: ${self:service}-${sls:stage}
Expand Down
11 changes: 9 additions & 2 deletions aws-python-rest-api-with-pymongo/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ package:

custom:
# Built-in python requirements packaging activates on this key.
pythonRequirements: {}
pythonRequirements:
# Download Linux arm64 wheels for Python 3.15 on any machine, so compiled
# dependencies (such as pymongo) match the Lambda architecture and runtime.
pipCmdExtraArgs:
- '--platform=manylinux2014_aarch64'
- '--platform=manylinux_2_28_aarch64'
- '--python-version=3.15'
- '--only-binary=:all:'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
environment:
MONGO_DB_USER: ${env:MONGO_DB_USER, ''}
Expand Down
2 changes: 1 addition & 1 deletion aws-python-rest-api-with-pynamodb/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package:

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
region: eu-central-1
environment:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-rest-api/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-scheduled-cron/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This template deploys two Python functions on AWS Lambda that run on a schedule,

## Prerequisites

- [Python](https://www.python.org/) 3.14, to run the function locally and to package dependencies when you add them.
- [Python](https://www.python.org/) 3.15, to run the function locally and to package dependencies when you add them.
- [Node.js](https://nodejs.org/), to install the Serverless Framework CLI: `npm i -g serverless`. See [Getting started](https://www.serverless.com/framework/docs/getting-started).
- An AWS account, with credentials configured on your machine. See [AWS credentials](https://www.serverless.com/framework/docs/providers/aws/guide/credentials).
- A Serverless account, or a license key in `SERVERLESS_LICENSE_KEY`. The CLI asks you to sign in the first time you run it.
Expand Down
2 changes: 1 addition & 1 deletion aws-python-scheduled-cron/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frameworkVersion: "4"

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-simple-http-endpoint/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-sqs-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"serverless-lift": "^1.1.2"
"serverless-lift": "^1.38.0"
}
}
2 changes: 1 addition & 1 deletion aws-python-sqs-worker/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

constructs:
Expand Down
2 changes: 1 addition & 1 deletion aws-python-telegram-bot/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package:

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64
environment:
TELEGRAM_TOKEN: ${file(./serverless.env.yml):TELEGRAM_TOKEN, ''}
Expand Down
6 changes: 3 additions & 3 deletions aws-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This template deploys one Python function to AWS Lambda. The function has no eve

## Prerequisites

- [Python](https://www.python.org/) 3.14, to run the function locally and to package dependencies when you add them.
- [Python](https://www.python.org/) 3.15, to run the function locally and to package dependencies when you add them.
- [Node.js](https://nodejs.org/), to install the Serverless Framework CLI: `npm i -g serverless`. See [Getting started](https://www.serverless.com/framework/docs/getting-started).
- An AWS account, with credentials configured on your machine. See [AWS credentials](https://www.serverless.com/framework/docs/providers/aws/guide/credentials).
- A Serverless account, or a license key in `SERVERLESS_LICENSE_KEY`. The CLI asks you to sign in the first time you run it.
Expand All @@ -45,7 +45,7 @@ You should see output like this:
Deploying "aws-python" to stage "dev" (us-east-1)
✔ Service deployed to stack aws-python-dev (41s)
functions:
hello: aws-python-dev-hello (2.7 kB)
hello: aws-python-dev-hello (2.9 kB)
```

## Try it
Expand All @@ -72,7 +72,7 @@ The command prints the function's response:
```yaml
provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down
2 changes: 1 addition & 1 deletion aws-python/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ frameworkVersion: '4'

provider:
name: aws
runtime: python3.14
runtime: python3.15
architecture: arm64

functions:
Expand Down