Skip to content

AWS Lambda with Java21 uses incorrect docker image #263

@drew-corporate-creations

Description

Using serverless V4.2.4 and Localstack V3.6.0

I have a lambda function with an API gateway.

When using:
provider: name: aws runtime: java21

I get this error in the localstack logs when trying to use the api gateway:

404 Client Error for http+docker://localhost/v1.41/images/create?tag=java21&fromImage=lambci%2Flambda: Not Found ("manifest for lambci/lambda:java21 not found: manifest unknown: manifest unknown")

This error does not occur with Java11.

The lambdaci docker images were deprecated last year in favor of the official AWS ones.

Given that serverless and localstack support java21, I assume the error is in the plugin (though I really have no idea).

I found this same issue with terraform localstack/localstack#10683
The solution for that issue was to fix the terraform (not localstack).

I'm a bit lost here as to how to get this working. Any advice would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions