簡體   English   中英

如何通過雲形成部署java 17 lambda function

[英]How to deploy java 17 lambda function through cloud formation

我計划將 java 17 function 部署到 AWS lambda。 但由於根據文檔 AWS 沒有為 java 17 提供基本圖像。

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

所以我對在 cloudformation 模板Runtime字段中應該使用什么值有疑問

"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"
        }
    }
}

Lambda 還沒有官方的 Java17 運行時,您必須自己創建自定義運行時

Robert is right, either create a custom runtime or use docker image to spin up your aws lambda function https://cloud.netapp.com/blog/aws-cvo-blg-aws-lambda-images-how-to-use-容器映像部署 lambda

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM