Skip to content

artyom/alb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Package alb provides adapter enabling usage of http.Handler inside AWS
Lambda running behind AWS ALB as described here:
https://docs.aws.amazon.com/lambda/latest/dg/services-alb.html

Usage example:

    package main

    import (
    	"fmt"
    	"net/http"

    	"github.com/artyom/alb"
    	"github.com/aws/aws-lambda-go/lambda"
    )

    func main() { lambda.Start(alb.Handler(http.HandlerFunc(hello))) }

    func hello(w http.ResponseWriter, r *http.Request) {
    	fmt.Fprintln(w, "Hello from AWS Lambda behind ALB")
    }

See documentation at https://godoc.org/github.com/artyom/alb

About

Use http.Handler inside AWS Lambda running behind AWS ALB

Topics

Resources

License

Stars

Watchers

Forks

Languages