aws-samples/aws-lambda-extensions

bash-example-wrapper: wrapper script works only if you choose Python 3.7 as runtime

lucasantoiemma opened this issue · 2 comments

Good morning,
I'm playing with the "bash-example-wrapper" example.
In the README.md you suggest to use the "importtime" option that is supported by Python from the version 3.7.
It may be useful to specify, in the same file, which runtime version to choose in order to not waste time looking for a non-existent error in the code.
Thank you very much!

PS: If I choose Python 3.7 it doesn't work; with 3.8 it runs as expected

Thanks, yes this behaviour is expected. Although importtime is supported with Python 3.7. Wrapper scripts are supported with Python 3.8 and above. I'll update the example to specify. https://docs.aws.amazon.com/lambda/latest/dg/runtimes-modify.html#runtime-wrapper