[英]Running AWS Lambda / Spring Cloud Function in JDK 17 Docker image
[英]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"
}
}
}
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.