vapor-aws-lambda-runtime icon indicating copy to clipboard operation
vapor-aws-lambda-runtime copied to clipboard

Local Lambda Debugging

Open fcobia opened this issue 5 years ago • 1 comments

The swift-was-lambda-runtime project has added the ability to run a local lambda server by setting the LOCAL_LAMBDA_SERVER_ENABLED environment variable to "true." I tried this with the Vapor integration and it does not seem to work.

It would be nice if this worked so I could run / debug inside Xcode on my Mac.

If you do not have time to do it, I have looked a little and am not sure where to look. Do you know where I would start to look into fixing this?

fcobia avatar Jul 26 '20 05:07 fcobia

Hi @fcobia, thanks for bringing this up. I can totally see the value of this and I'm thinking about how to achieve it.

The library uses an extension hook from swift-aws-lambda-runtime that is located below the level where the LOCAL_LAMBDA_SERVER_ENABLED environment variable is implemented, so we will need to reinvent the wheel for vapor-aws-lambda-runtime. I'm not sure what the best approach is for this yet.

fabianfett avatar Jul 27 '20 07:07 fabianfett