Cluster-level Alerting

This module is responsible for setting up our Cluster-level alerting Terraform

Note: For architectural decisions made in Terraform, this wraps the cluster_alerts module very very hard.

Enabling Terraform

git clone https://github.com/hashivim/vim-terraform.git ~/.vim/pack/plugins/start/vim-terraform  # If you use vim ever
terraform init
terraform get

Running changes

For simplicity:

../global_infra/setup_alerts.sh   # prerequisite
./setup_alerts.sh <environment>

For smaller steps:

# Get valid account workspaces
terraform workspace list

# Pick your account
terraform workspace select <account>

# See what you're about to do
terraform plan -out out.tfplan --var-file <environment>.tfvar

# GO GET APPROVAL FOR THESE CHANGES
# Slack or PR

# Ensure you're in the right account and apply
terraform workspace select <environment>
terraform apply out.tfplan

To avoid 30 minutes of frustration: terraform import "Quoted module string" AWS_resource. If you care about this, this will make perfect sense.