python3.8 debugging broken due to AWS Lambda bootstrap changes
See original GitHub issueDescription
aws-sam-cli makes the assumption that /var/runtime/bootstrap
on the python3.8 runtime is a python file:
Which was true until today – it seems the AWS Lambda runtime team has updated it to be a bash file.
So users currently trying to use aws-sam-cli for debugging the python3.8 runtime will see a syntax error.
/var/runtime/bootstrap.py
can now be run as main, so the argument could just be updated to that, or aws-sam-cli could use the new AWS_LAMBDA_EXEC_WRAPPER
env variable that’s been introduced on the Amazon Linux 2 runtimes.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
python3.8 debugging broken due to AWS Lambda bootstrap ...
Reopening as Python 3.8 changes are being rolled out and this will be an issue again. TLDR; /var/runtime/bootstrap is no longer a Python...
Read more >Resolve "Unable to import module" errors from Python ... - AWS
I receive an "Unable to import module" error when I try to run my AWS Lambda code in Python. How do I resolve...
Read more >Troubleshoot deployment issues in Lambda
When you update your function, Lambda deploys the change by launching new instances of the function with the updated code or settings.
Read more >Step-through debugging Lambda functions locally
For example, you can perform local step-through debugging of your Lambda functions by setting breakpoints, inspecting variables, and executing function code ...
Read more >Error handling and automatic retries in AWS Lambda
When you invoke a function directly, you determine the strategy for handling errors. You can retry, send the event to a queue for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FWIW @styfle that env variable is finally documented in public 😉
https://docs.aws.amazon.com/lambda/latest/dg/runtimes-modify.html#runtime-wrapper
It’s not. It’s new. And… that’s all I can say about that for now 😆