Go package to implement the whosonfirst/go-webhookd interfaces for dispatching webhooks originating from GitHub to AWS services.
Before you begin please read the go-webhookd documentation for an overview of concepts and principles.
import (
_ "github.com/go-webhookd-aws/v2"
)
The Lambda dispatcher will send messages to an Amazon Web Services (ASW) Lambda function. It is defined as a URI string in the form of:
lambda://{FUNCTION}?dsn={DSN}&invocation_type={INVOCATION_TYPE}
| Name | Value | Description | Required |
|---|---|---|---|
| dsn | string | A valid aaronland/go-aws-session DSN string. |
yes |
| function | string | The name of your Lambda function. | yes |
| invocation_type | string | A valid AWS Lambda Invocation Type string. |
no |
| halt_on_message | string | An optional regular expression that will be compared to the commit message; if it matches the transformer will return an error with code webhookd.HaltEvent |
no |
| halt_on_author | string | An optional regular expression that will be compared to the commit author; if it matches the transformer will return an error with code webhookd.HaltEvent |
no |
whosonfirst/go-webhookd-aws/v2 and higher is backwards incompatible with whosonfirst/go-webhookd-aws "v1". Importantly the ability to run a webhookd server as an AWS Lambda has been merged back in to whosonfirst/go-webhookd/v2 (and higher). This package only manages AWS specific dispatchers now.