How to execute AWS lambda with Open JDK 11+ as custom runtime?

后端 未结 4 1558
离开以前
离开以前 2021-02-20 00:49

AWS allows to create Lambda function with Java 8 (OpenJDK 8) as runtime. I need to create a simple function using Open JDK 1

4条回答
  •  太阳男子
    2021-02-20 01:16

    There's no longer a need to use a custom runtime, as AWS Lambda now supports Java 11.

    However, Lambda functions that use this runtime will be run with Amazon Corretto 11 and not OpenJDK 11.

    If you wish to run your Lambda function with OpenJDK 11 instead of Corretto 11, then using a custom runtime is still recommended.

提交回复
热议问题