Skip to content

Commit cf4adc5

Browse files
authored
Merge pull request #36 from worldcoin/feat/support-webhook-notification
feat: support webhook in addition to slack
2 parents 5844f22 + d56e674 commit cf4adc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ variable "monitoring_notification_channel" {
156156
type = string
157157
default = "@slack-TFH-infrastructure-alerts"
158158
validation {
159-
condition = can(regex("^@slack-[A-Za-z0-9\\-]+$", var.monitoring_notification_channel))
159+
condition = can(regex("^@(?:slack|webhook)-[A-Za-z0-9\\-]+$", var.monitoring_notification_channel))
160160
error_message = "Invalid notification channel"
161161
}
162162
}

0 commit comments

Comments
 (0)