How to download/view code running in your lambda functions?
Last updated
Last updated
CloudWatch? Check. UI console? Check. Specific line I need? Nope. Debugging Lambdas is like playing hide-and-seek with your code.
While direct code modification in the console and immediate deployment to production should always be avoided, having visibility into the running code can be valuable, especially when working with branches containing extensive feature merges.
if you have lots of dependencies, it is easy to reach the 3M limit and having the console just showing the following warning:
The deployment package of your Lambda function "xyz" is too large to enable inline code editing. However, you can still invoke your function.
Well, just use aws lambda get-function
Then it´s just a matter of unzip YOUR_FUNCTION_NAME.zip and you have the folder with all the content of the deployed package!
Happy debugging.