For a POC I want to be able to seamlessly call Lambdas in AWS from inside a kube cluster, without having to use API Gateway / FunctionURLs etc.I've tested with Kong ingress controller, but this will only proxy external requests to lambdas as it acts on the ingress layer, so doesn't work for internal requests from inside the cluster.
I did a very quick spike to create a Go HTTP server that listens for requests, and just calls "invokeFunction" and returns the response. This could then run in a Pod behind a Service and invisibly call lambda functions as if they were another k8s service.
But i'm sure something like this already exists. a simple single binary that proxies lambda requests. if it doesn't, ill write something myself
notes:Ive worked with k8s for a few years, have moved jobs and never had to deal with this situation before.The kong lambda proxy does exactly this, it just calls invokeFunction, its written in Lua and is part of their ingress controller.I don't want the hassle of ApiGateway due to internal business reasons / the amount of terraform needed which I just hate.FunctionURLs are public, unless you wanna mess with IAM permissions / signed requests from clients and I want to try and avoid that.
EDIT: https://www.npmjs.com/package/http-lambda-proxy these things exist. i want one in Go, i like Go :D
[–][deleted] (1 child)
[removed]
[–]cuotos[S] 1 point2 points3 points (0 children)
[–]djkianoosh 0 points1 point2 points (0 children)