I would like to setup alerting using slack in GCP using Terraform.
My code is:
resource "google_monitoring_notification_channel" "slack" {
display_name = "Prod Slack Alerts"
type = "slack"
labels = {
"channel_name" = "#alert-channel"
}
sensitive_labels {
auth_token = "one"
}
}
But the question is how do I get the auth_token ? I looked at this post but this solution is outdated and does not work. Plus there is no documentation on this. I already have the Google Cloud Monitoring app integrated into my organization's slack.
