Skip to content

fenech/aws-lambda-netlify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-lambda-netlify

AWS Lambda to trigger Netlify build, written in Go

Build

GOOS=linux go build main.go
zip function.zip main

Usage

The function sends a POST request to the following endpoint: https://api.netlify.com/build_hooks/{hook}

The value of hook can come from:

  1. (highest priority) an event of the form :
{
    "hook": "YOUR_BUILD_HOOK"
}
  1. the HOOK environment variable

Using the environment variable makes it possible to trigger the function using a CloudWatch scheduled event.

About

AWS Lambda to trigger Netlify build, written in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages