diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aafaa1169..7740b28b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/sweep.yml b/.github/workflows/sweep.yml index ca821ddc2..c83951c00 100644 --- a/.github/workflows/sweep.yml +++ b/.github/workflows/sweep.yml @@ -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 diff --git a/aws-bedrock-agentcore/python/strands-browser/Dockerfile b/aws-bedrock-agentcore/python/strands-browser/Dockerfile index e53afa747..6be3d194b 100644 --- a/aws-bedrock-agentcore/python/strands-browser/Dockerfile +++ b/aws-bedrock-agentcore/python/strands-browser/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.14-slim +FROM python:3.15-slim WORKDIR /app diff --git a/aws-bedrock-agentcore/python/strands-browser/pyproject.toml b/aws-bedrock-agentcore/python/strands-browser/pyproject.toml index aadae80d1..b1dd5a426 100644 --- a/aws-bedrock-agentcore/python/strands-browser/pyproject.toml +++ b/aws-bedrock-agentcore/python/strands-browser/pyproject.toml @@ -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", diff --git a/aws-multiple-runtime/README.md b/aws-multiple-runtime/README.md index 796a70a0d..8d4392b91 100644 --- a/aws-multiple-runtime/README.md +++ b/aws-multiple-runtime/README.md @@ -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 diff --git a/aws-multiple-runtime/serverless.yml b/aws-multiple-runtime/serverless.yml index 40c2cc2ee..ce2a0d6fd 100644 --- a/aws-multiple-runtime/serverless.yml +++ b/aws-multiple-runtime/serverless.yml @@ -8,7 +8,7 @@ provider: functions: hello: - runtime: python3.14 + runtime: python3.15 events: - httpApi: method: get diff --git a/aws-python-alexa-skill/serverless.yml b/aws-python-alexa-skill/serverless.yml index 32eaf304d..50fc611b1 100644 --- a/aws-python-alexa-skill/serverless.yml +++ b/aws-python-alexa-skill/serverless.yml @@ -4,7 +4,7 @@ frameworkVersion: '4' provider: name: aws - runtime: python3.14 + runtime: python3.15 architecture: arm64 functions: diff --git a/aws-python-auth0-custom-authorizers-api/README.md b/aws-python-auth0-custom-authorizers-api/README.md index f35c09b59..44d6a7bc0 100644 --- a/aws-python-auth0-custom-authorizers-api/README.md +++ b/aws-python-auth0-custom-authorizers-api/README.md @@ -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. diff --git a/aws-python-auth0-custom-authorizers-api/package.json b/aws-python-auth0-custom-authorizers-api/package.json index ecca02884..fa0caa47f 100644 --- a/aws-python-auth0-custom-authorizers-api/package.json +++ b/aws-python-auth0-custom-authorizers-api/package.json @@ -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" } } diff --git a/aws-python-auth0-custom-authorizers-api/serverless.yml b/aws-python-auth0-custom-authorizers-api/serverless.yml index 670686a5f..19ba59e66 100644 --- a/aws-python-auth0-custom-authorizers-api/serverless.yml +++ b/aws-python-auth0-custom-authorizers-api/serverless.yml @@ -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: diff --git a/aws-python-flask-api/README.md b/aws-python-flask-api/README.md index 5adc966a6..57d430956 100644 --- a/aws-python-flask-api/README.md +++ b/aws-python-flask-api/README.md @@ -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. @@ -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://.execute-api..amazonaws.com/dev/` for the default `dev` stage. diff --git a/aws-python-flask-api/serverless.yml b/aws-python-flask-api/serverless.yml index 288732ab2..60f9e3686 100644 --- a/aws-python-flask-api/serverless.yml +++ b/aws-python-flask-api/serverless.yml @@ -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 diff --git a/aws-python-http-api-with-dynamodb/serverless.yml b/aws-python-http-api-with-dynamodb/serverless.yml index 891e49699..b267b2e18 100644 --- a/aws-python-http-api-with-dynamodb/serverless.yml +++ b/aws-python-http-api-with-dynamodb/serverless.yml @@ -3,7 +3,7 @@ frameworkVersion: '4' provider: name: aws - runtime: python3.14 + runtime: python3.15 architecture: arm64 environment: DYNAMODB_TABLE: ${self:service}-${sls:stage} diff --git a/aws-python-http-api-with-pynamodb/serverless.yml b/aws-python-http-api-with-pynamodb/serverless.yml index 62fde1799..4b63cd5d3 100644 --- a/aws-python-http-api-with-pynamodb/serverless.yml +++ b/aws-python-http-api-with-pynamodb/serverless.yml @@ -22,7 +22,7 @@ package: provider: name: aws - runtime: python3.14 + runtime: python3.15 architecture: arm64 environment: DYNAMODB_TABLE: ${self:service}-${sls:stage} diff --git a/aws-python-http-api/README.md b/aws-python-http-api/README.md index 0cd06bd0d..c32d5361c 100644 --- a/aws-python-http-api/README.md +++ b/aws-python-http-api/README.md @@ -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. @@ -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://.execute-api..amazonaws.com/`. diff --git a/aws-python-http-api/serverless.yml b/aws-python-http-api/serverless.yml index 318a0fd32..a5892fc32 100644 --- a/aws-python-http-api/serverless.yml +++ b/aws-python-http-api/serverless.yml @@ -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 diff --git a/aws-python-line-echo-bot/README.md b/aws-python-line-echo-bot/README.md index 8ed089915..c96d365a2 100644 --- a/aws-python-line-echo-bot/README.md +++ b/aws-python-line-echo-bot/README.md @@ -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) diff --git a/aws-python-line-echo-bot/serverless.yml b/aws-python-line-echo-bot/serverless.yml index 5cbec60d6..f73e64eea 100644 --- a/aws-python-line-echo-bot/serverless.yml +++ b/aws-python-line-echo-bot/serverless.yml @@ -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'} @@ -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:' diff --git a/aws-python-pynamodb-s3-sigurl/README.md b/aws-python-pynamodb-s3-sigurl/README.md index 6d19f4a6d..9e2eb70e9 100644 --- a/aws-python-pynamodb-s3-sigurl/README.md +++ b/aws-python-pynamodb-s3-sigurl/README.md @@ -1,5 +1,5 @@