{"repo":"akrylysov/algnhsa","free":true,"listed":false,"github":"https://github.com/akrylysov/algnhsa","clone":"git clone https://github.com/akrylysov/algnhsa.git","description":"AWS Lambda Go net/http server adapter","language":"Go","stars":394,"topics":["go","aws","aws-lambda","lambda","serverless"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"algnhsa algnhsa is an AWS Lambda Go net/http server adapter. algnhsa enables running Go web applications on AWS Lambda and API Gateway or ALB without changing the existing HTTP handlers: Plug in a third-party web framework Gin echo chi Fiber Deployment First, build your Go application for Linux and zip it: When creating a new function, choose the \"Provide your own bootstrap on Amazon Linux 2\" runtime or \"Custom runtime on Amazon Linux 2\" when modifying an existing function. Make sure to use bootstrap as the executable name and as the handler name in AWS. AWS provides plenty of ways to expose a Lambda function to the internet. Lambda Function URL This is the easier way to deploy your Lambda function as an HTTP endpoint. It only requires going to the \"Function URL\" section of the Lambda function configuration and clicking \"Configure Function URL\". API Gateway HTTP API 1. Create a new HTTP API. 2. Configure a catch-all $default route. REST API 1. Create a new REST API. 2. In the \"Resources\" section create a new ANY method to handle requests to / (check \"Use Lambda Proxy Integration\"). 3. Add a catch-all {proxy+} resource to handle requests to every other path (check \"Configure as proxy resource\"). ALB 1. Create a new ALB and point it to your Lambda function. 2. In the target group settings in the \"Attributes\" section enable \"Multi value headers\".","default_branch":null,"files":null,"tree":[],"storefront":"/r/akrylysov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akrylysov/algnhsa/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}