Hacker News new | ask | show | jobs
by kadirmalak 1891 days ago
Maybe someone else has already mentioned but anyway... The things I do: - Lambda event passed to your lambda_handler is just a big json, get it and copy it somewhere, and then you can test your code locally. ( lambda_handler(your_event, None) ) - If there are some things you cannot do locally, use some flags to handle them. (You may use: MessageGroupId from the lambda event for example) - Prepare a deploy script and use it. (aws lambda update-function-code ...)
1 comments

It’s just not a realistic way to debug and test. Data is very different across environments and use cases. Unless it’s a bumble fuck add(x, y) lambda, you are effectively suggesting an unrealistic solution. I NEED to reproduce the system locally.

And, why is this such a wild expectation in 2021? Is it that so much to ask?