0
votes

I have an AWS Java 11 Lambda. I need to run on my Lambda both Java 11 and Python 3.10. Is there an out-of-the-box option to do that (without creating a custom runtime env or downloading a pre-built python binaries to my java AWS Lambda)?

I saw this link from 2 years ago - AWS lambda with both python and java language support back then I know it wasn't possible, but maybe now it is?

Each lambda uses precisely 1 runtime. There are runtimes for both Python and Java.Michael
I hoped that they might have added this option :(Lin
Why? What you're asking doesn't make sense. A lambda is one function. Why would you write 1 function in 2 or more languages? If for some reason you have to use both languages, you can have 2 lambdas linked together. The cold start problem is already significant, let alone spinning up multiple runtimes for 1 function... If you really care then Java has an embedded python interpreter called Jython, but it is almost certainly not desirable to do that.Michael
I know that for most cases it doesn't make sense. This is not one of them.Lin
Maybe it would help if you actually explained what you're trying to accomplish. I've been around the block long enough to know that most of the time when people say "just trust me, this incredibly esoteric thing I'm trying to do is 100% necessary", it's usually not.Michael