Closed michalrames closed 1 year ago
Looks like the image now runs SAM CLI 1.83 (which resolves this issue), but https://gallery.ecr.aws/codebuild/amazonlinux2-x86_64-standard doesn't show any new build of the image - cannot confirm & close.
New version is published on public ECR now: public.ecr.aws/codebuild/amazonlinux2-x86_64-standard:5.0
Describe the bug Despite using the latest codebuild image, I am unable to build & deploy SAM template for a java17 Lambda runtime.
To Reproduce Steps to reproduce the behavior:
AWS::Serverless::Function
andRuntime: java17
Error: 'java17' runtime is not supported
due to using SAM CLI 1.78Expected behavior Build succeeds thanks to using SAM CLI 1.83 (or whichever version started supporting java17 runtime)
Platform (please complete the following information):
Additional context This is not an issue with runtime support in the docker image - the docker image already contains java17 runtime.
The issue can be worked around by upgrading the SAM CLI in the build pipeline (
pip install --upgrade aws-sam-cli
), but this adds to the build time and is undesirable