serverless-localstack icon indicating copy to clipboard operation
serverless-localstack copied to clipboard

Support for Python 3.13 Lambdas

Open paulbenschmidt opened this issue 5 months ago • 0 comments

Context

AWS announced support for Python 3.13 runtime in November 2024. When attempting to deploy to Localstack, however, I get the following error:

      StackId: 'arn:aws:cloudformation:***:000000000000:stack/proj/00000',
      EventId: '137610ba-70c5-44f1-89a1-2a906c535d2d',
      StackName: 'business-analytics-serverless-local',
      LogicalResourceId: 'MyLambdaFunction',
      PhysicalResourceId: 'arn:aws:cloudformation:***:000000000000:stack/proj/00000',
      ResourceType: 'AWS::Lambda::Function',
      Timestamp: 2025-08-28T13:53:58.640Z,
      ResourceStatus: 'CREATE_FAILED',
      ResourceStatusReason: "An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Value python3.13 at 'runtime' failed to satisfy constraint: Member must satisfy enum value set: [nodejs20.x, provided.al2023, python3.12, java17, nodejs16.x, dotnet8, python3.10, java11, python3.11, dotnet6, java21, nodejs18.x, provided.al2, ruby3.3, java8.al2, ruby3.2, python3.8, python3.9] or be a valid ARN"

Expected Behavior

Successful deployment of Python 3.13 Lambdas.

paulbenschmidt avatar Aug 28 '25 15:08 paulbenschmidt