Last active
March 26, 2018 09:24
-
-
Save ctompkinson/3f622f6fc408b4d947039f1f8c90a75b to your computer and use it in GitHub Desktop.
Revisions
-
ctompkinson renamed this gist
Mar 26, 2018 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ctompkinson created this gist
Mar 26, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # Running and testing go lambdas locally To run the lambda locally ``` _LAMBDA_SERVER_PORT=8001 go run wavefront_handler.go ``` To invoke the lambda ``` package main import ( "github.com/djhworld/go-lambda-invoke/golambdainvoke" ) func main() { response, err := golambdainvoke.Run(8001, "payload") if err != nil { fmt.Println(err) } fmt.Println(response) } ```