aws/aws-codebuild-docker-images

python3.11 not supported with amazonlinux2-aarch64-standard:3.0

Rodriguevb opened this issue · 3 comments

Describe the bug
The amazonlinux2-aarch64-standard:3.0 (current latest image version) uses SAM CLI v1.79.0.
However, the latest python version is 3.11 and this version of SAM does not support python3.11.

To Reproduce

buildspec.yml

version: 0.2
phases:
  install:
    runtime-versions:
      python: latest
  build:
    commands:
      - sam --version
      - sam build --template-file template.yml

Logs

[Container] 2023/08/07 09:03:12 Processing environment variables
[Container] 2023/08/07 09:03:12 Resolved 'python' runtime alias 'latest' to '3.11'.
[Container] 2023/08/07 09:03:12 Selecting 'python' runtime version '3.11' based on manual selections...
...
[Container] 2023/08/07 09:03:13 Running command sam --version
SAM CLI, version 1.79.0
... 
Building codeuri: /codebuild/output/src2369554271/src/lambda runtime: python3.11 metadata: {} architecture: arm64 functions: Converter

Build Failed
Error: 'python3.11' runtime is not supported
...

Platform (please complete the following information):

  • OS: Linux ARM, amazonlinux2-aarch64-standard:3.0

Question
How can I force SAM to use the latest version ?
Or can you increase the SAM version used by default?