This repository manages our alert rules with Terraform.
- Forwarding Sentry issues to project-specific Discord channels.
- Terraform >= 1.10.0
- A Discord server with:
- A category for alert channels
- The Sentry integration installed and configured
- A Discord Bot token with admin permissions to allow it to CRUD channels on the server
- An active Discord integration in our Sentry organization
- Copy the example tfvars file:
cp terraform/terraform.tfvars.example terraform/terraform.tfvars
-
Configure the required variables in
terraform.tfvars
(follow the instructions in the file's comments) -
Initialize your Terraform environment:
cd terraform
terraform init
terraform plan
terraform apply
For each Sentry project:
- A Discord channel named
#sentry-{project-name}
- A Sentry alert rule that forwards errors to that channel
- Proper permissions for the Sentry integration to access the channels