How to deploy java 17 lambda function through cloud formation

Viewed 69

I'm planning to deploy java 17 function to AWS lambda. But since as per the documentation AWS didn't provide a bas image for java 17.

https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html

So I have a problem with what value should I use in cloudformation template Runtime field

"AMIIDLookup": {
    "Type": "AWS::Lambda::Function",
    "Properties": {
        "Handler": "index.handler",
        "Role": {
            "Fn::GetAtt": [
                "LambdaExecutionRole",
                "Arn"
            ]
        },
        "Code": {
            "S3Bucket": "lambda-functions",
            "S3Key": "amilookup.zip"
        },
        "Runtime": "Java11",  # what is the alternative for this
        "Timeout": 25,
        "TracingConfig": {
            "Mode": "Active"
        }
    }
}
2 Answers
Related