Skip to content

An example AWS Lambda function to receive Vertex webhooks and verify their payload.

License

Notifications You must be signed in to change notification settings

Vertexvis/webhook-receiver

Repository files navigation

webhook-receiver

This example shows how to verify a Vertex webhook's payload with the x-vertex-signature header.

Webhook Receiver

This example is deployed as an AWS Lambda function via the AWS CDK. The stack defined at ./scripts/stack.ts. You can deploy one to your AWS account as follows,

  1. Clone the repository and install dependencies with yarn install
  2. Using your WEBHOOK_SECRET, Run WEBHOOK_SECRET=[YOUR_WEBHOOK_SECRET] yarn deploy to create the Lambda function. After the deploy, a publicly accessible HTTP endpoint is logged to the console.
  3. Once you have created a webhook subscription and initiated an event that triggers one, check your Lambda function's logs for Received ..., body=...
  4. [Optional] Remove the AWS resources, yarn destroy

About

An example AWS Lambda function to receive Vertex webhooks and verify their payload.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published