Prerequisites
- A project in a GCP account
- A pub/sub topic to consume messages from
- Terraform installed
Getting started
- Enable access for the required APIs on the GCP project
- Clone Stigg’s GCP connector repository
- Edit the EventParser.ts file to map between your event format and the Stigg format.
Deployment
- Create a
terraform/terraform.tfvarsfile with the following content and fill in the values: - Change the directory
cd terraform/ - Run
terraform initto initialize the project - Run
terraform apply -var-file=".tfvars"to deploy the Cloud Function