As recommended by AWS, we are planning to upgrade our Lambda function runtime from the legacy Python 3.8/3.9 versions, as these versions have been deprecated and are no longer supported by AWS.
Our Lambda functions are deployed and managed through Terraform. We attempted to upgrade the runtime from Python 3.9 to Python 3.13 (or Python 3.14); however, we encountered the error shown in the attached screenshot
We are unsure whether Python 3.13 or Python 3.14 is currently supported for AWS Lambda when deployed via Terraform, or if additional Terraform provider updates are required.
Could you please assist us in identifying the root cause and guide us on the correct approach to successfully upgrade the Lambda runtime?
The set of possible runtimes is validated client-side based on an enumeration that’s provided as part of the AWS SDK for Go, in types.Runtime.
This means that which runtimes are accepted depends on which version of the AWS provider you are running. Since the list returned in the error message is missing some of the newer runtimes, I expect you’ll need to update to a newer version of the provider which in turn uses a newer version of the AWS SDK for Go.