We recently released version 2.10.0 of Swift AWS Lambda Runtime.
This release includes two notable changes:
Dropped support for Swift 6.0
Following the Swift ecosystem's policy to support the last three major compiler versions, the minimum supported toolchain is now Swift 6.1. We support Swift 6.1, 6.2, and 6.3.
Amazon Linux 2 deprecation warning
The archive plugin now displays a prominent warning when you build on or for Amazon Linux 2. Amazon Linux 2 reaches End of Life on June 30, 2026.
Starting with the next release, the plugin will default to building on Amazon Linux 2023. Before you switch, make sure your Lambda deployment is updated to use the provided.al2023 runtime.
Why this matters: A binary compiled on AL2023 will not run on AL2. AL2023 ships glibc 2.34 while AL2 only has glibc 2.26. When you compile on AL2023, your binary links against glibc 2.34 and uses symbol versions from that release. If you try to run it on AL2, you'll get errors like:
/lib64/libc.so.6: version `GLIBC_2.34' not found
In short: update your Lambda runtime to provided.al2023 before you switch your build to AL2023.
To opt in to Amazon Linux 2023 today, pass the --base-docker-image flag:
swift package archive \
--allow-network-connections docker \
--base-docker-image swift:amazonlinux2023
The full changelog is available on GitHub.