diff --git a/test/e2e/main.tf b/test/e2e/main.tf index b1942a75b..f9cc2d5f8 100644 --- a/test/e2e/main.tf +++ b/test/e2e/main.tf @@ -30,6 +30,10 @@ variable "checkly_alert_channel_instatus_webhook_url" { sensitive = true } +variable "checkly_alert_channel_instatus_webhook_url_ingestion" { + sensitive = true +} + provider "checkly" { api_key = var.checkly_api_key account_id = var.checkly_account_id @@ -163,6 +167,12 @@ EOT comparison = "IS_EMPTY" } } + + alert_channel_subscription { + channel_id = checkly_alert_channel.instatus_ingestion.id + activated = true + } + } resource "checkly_check" "plausible-io-tracker-script" { @@ -298,3 +308,14 @@ EOT url = var.checkly_alert_channel_instatus_webhook_url } } + +resource "checkly_alert_channel" "instatus_ingestion" { + webhook { + name = "Instatus integration - ingestion" + method = "POST" + template = <