我计划将 java 17 函数部署到 AWS lambda。但根据文档,AWS 没有为 java 17 提供 bas 镜像。
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"
}
}
}
最佳答案
有no official Java17 runtime对于 Lambda,您必须创建一个 custom runtime靠你自己。
关于java - 如何通过云形成部署java 17 lambda函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73468547/