Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 843 Bytes

README.md

File metadata and controls

12 lines (8 loc) · 843 Bytes

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