繁体   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