-
Couldn't load subscription status.
- Fork 8
Add support for Lambda functions exposed behind an Application Load Balancer (ALB) #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you @tkrajacic for the review. I updated the code based on your review. If time permits, I would love another round of review and / or test it on your project code before merging. |
|
I now incorporated your branch and kicked out my custom code. Works like a charm. |
This PR adds support for exposing Swift OpenAPI Lambda functions behind an Application Load Balancer (ALB), providing an alternative to API Gateway for HTTP routing to Lambda functions.
Changes
New ALB Support
ALBTargetGroupRequestandALBTargetGroupResponsesupportCore Library Updates
/Sources/ALB/directory with ALB-specific implementationsALBTargetGroupRequestevents from Elastic Load BalancingComplete ALB Example
Examples/quoteapi-alb/Key Files Added
Usage
Simple ALB Integration
Key Differences from API Gateway
OpenAPILambdaALBinstead ofOpenAPILambdaHttpApiALBTargetGroupRequestevents instead ofAPIGatewayV2RequestALBTargetGroupResponseinstead ofAPIGatewayV2ResponseBenefits
Testing
sam buildsam local invokeDeployment
Deploy the ALB example:
Test the deployed endpoint:
Backward Compatibility
This is a purely additive change: