Closed Oberon00 closed 3 years ago
Hey @Oberon00, thanks for reaching out!
We have since fixed this issue and deployed it as part of:
public.ecr.aws/lambda/java:11.2021.05.25.09
public.ecr.aws/lambda/java:8.al2.2021.05.25.09
AWS_EXECUTION_ENV
should now have the right values in the scope of the exec wrapper.
Thank you very much for the quick resolution!
Hello! I observed that when printing the environment variable
AWS_EXECUTION_ENV
from anAWS_LAMBDA_EXEC_WRAPPER
script in thejava8.al2
orjava11
base image is not set at all when run locally usingdocker run
and is set to an undocumented valueAWS_Lambda_Image
when the image is actually deployed to AWS and executed as Lambda.Funnily enough, I observed the same behavior (checked only locally so far) with the Python base image version 3.8.2021.05.14.10 but not the immediately next version 3.8.2021.05.17.10 ony any version thereafter that I checked. Did you fix that there recently?
Since there are no release notes anywhere (I can find) it's hard to say which images are affected.
I more or less randomly checked a few versions, as follows (entry is the value obtained when running the image with
docker run --entrypoint env
):When reading AWS_EXECUTION_ENV from the actual Lambda in Java (i.e. from inside the JVM), the value seems to be correct though. But this is not enough when you want to do something in the execwrapper script based on AWS_EXECUTION_ENV.
Documentation: