Support for ALB
Opened this issue · 1 comments
First of all, thank you for doing this work! Kudos to you!
jets deploy
just works fine. However, it would be nice to have support for ALB.
Motivation
The API Gateway offers a lot of features, but I don't need any of it. And besides that, the API Gateway is very expensive if you have a lot of API calls. Check out this blog post about the price comparison. And I also don't need a Lambda for each controller method.
Desired setup
I would like to run jets deploy
and ideally it:
- Sets up 1 Lambda per controller. So that I have all my Endpoints that belong to a domain in one single Lambda. For example, having one Lambda handling ALL the CRUD operations for the USER domain.
- Setting up an ALB which triggers the Lambda.
Not sure if I'm the only one with this requirement. If so, you can ignore it :-) Than I will do the setup with Terraform.
One lambda per controller is done in the v5 branch
https://github.com/boltops-tools/jets/tree/v5
For support with ALB I think this is better terraforming that out yourself.
As mentioned in
https://community.boltops.com/t/possible-to-execute-jets-lambda-through-application-load-balancer/139/2
Though not adding official ELB support, did adjust the response for requests coming from ELBs to help for those who are manually connecting ELBs: https://github.com/tongueroo/jets/pull/242