Created
January 4, 2024 18:23
-
-
Save micahwalter/7b5e026e3f2fd2bcbebf902937aef8ed to your computer and use it in GitHub Desktop.
Revisions
-
micahwalter created this gist
Jan 4, 2024 .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,27 @@ package main import ( "fmt" "net/http" "os" "github.com/aws/aws-lambda-go/lambda" ) func handler() { url := os.Getenv("AMPLIFY_WEBHOOK_URL") fmt.Printf("Sending to webhook: %s", url) _, err := http.Post(url, "application/json", nil) if err != nil { fmt.Println(err) } } func main() { lambda.Start(handler) }