I have a use case for an AWS lambda, a single func...
# http4k
r
I have a use case for an AWS lambda, a single function that handles one route via the ApiGatewayV2 proxy. Great chance to use http4k. But I am a little bedazzled by the choices. Do I want a ApiGatewayV2LambdaFunction which takes an AppLoader?
d
That's the class you want - the options are just whether you need: • no setup at all -> extend
ApiGatewayV2LambdaFunction(HttpHandler)
• need to read the env ->
ApiGatewayV2LambdaFunction(AppLoader)
• need to read the env and use something from the AWS context
ApiGatewayV2LambdaFunction(AppLoaderWithContexts)
👍🏾 1
👍 2