Hello,
Thank you for writing to us.
As you noted, it is true that AWS Lambda Java runtime framework reference Oracle and Amazon Corretto, as you can see at the following link under the section title "Language and framework support policies":
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html#runtime-support-policy
Note from the link below that the official AWS Java SDK, also provided by Lambda Java runtime (as noted at [1]), supports OpenJDK and Amazon Corretto:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup-project-maven.html
We further note that "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of Open Java Development Kit (OpenJDK) that comes with long-term support (LTS)." [2]
You should therefore be able to use OpenJDK alternative. However, may I kindly advise that due diligence is still required to ensure that your entire logic, including all dependencies, is tested and verified to run expectedly on the managed runtime.[3] Should there be incompatibilities with the managed runtime, then you can opt for custom runtime environment [4] in order to ensure that you control every aspect of the runtime environment. Do let me know however if there are any other queries I can help with.
1.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html
2.
https://aws.amazon.com/corretto/faqs/
3.
https://docs.aws.amazon.com/lambda/latest/dg/testing-guide.html
4.
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html
We value your feedback. Please share your experience by rating this and other correspondences in the AWS Support Center. You can rate a correspondence by selecting the stars in the top right corner of the correspondence.
Best regards,
Keith C.
Amazon Web Services