awslabs / aws-lambda-go-api-proxy

lambda-go-api-proxy makes it easy to port APIs written with Go frameworks such as Gin (https://gin-gonic.github.io/gin/ ) to AWS Lambda and Amazon API Gateway.
Apache License 2.0
1.03k stars 198 forks source link

Support for ECHO in Lambda under the application load balancer. Create an adapter. #144

Open ikegam1 opened 1 year ago

ikegam1 commented 1 year ago

I am developing a Lambda under an application load balancer. I want to use echo there. I have an idea of where to modify it. I think I can create a new adapter.go with a different name.

I will try to create a pull request in the near future.

sapessi commented 1 year ago

Would you consider using this instead: https://github.com/awslabs/aws-lambda-web-adapter

ikegam1 commented 1 year ago

Would you consider using this instead: https://github.com/awslabs/aws-lambda-web-adapter

@sapessi Thank you! But I don't know if that will support the echo Framework.

I want an adapter.go that can use the Application load balancer. In this, I want to use events.ALBTargetGroupResponse instead of events.APIGatewayProxyResponse.

0angelic0 commented 1 year ago

@sapessi could you please take a look at @ikegam1 's PR. It work very well and I already added (to my fork) support for fiber ALB on top of his PR.