-
Notifications
You must be signed in to change notification settings - Fork 221
Description
I'm trying to integrate PagerDuty with Google Chat using the pagerduty_webhook_subscription resource in Terraform. The integration works perfectly when created manually through the Google UI, but when I create it using Terraform, the integration fails, and incidents are not being sent to the Google Chat space.
Steps to Reproduce:
Manually create the PagerDuty webhook integration using the Google UI. The integration works as expected, and incidents are sent to the Google Chat space.
Import the manually created resource into Terraform using terraform import.
Delete the manual integration from the Google UI.
Apply the Terraform configuration to create the integration.
The integration gets created, but incidents are not being sent to the Google Chat space.
Expected Behavior:
The pagerduty_webhook_subscription resource should work when created via Terraform just like it does through the Google UI, with incidents being sent to the Google Chat space.
Actual Behavior:
After creating the integration through Terraform, incidents are not being sent to the Google Chat space.
Terraform Configuration:
resource "pagerduty_webhook_subscription" "main" {
delivery_method {
temporarily_disabled = false
type = "http_delivery_method"
url = "https://pagerduty-bot-production.appspot.com/pagerdutyevent"
}
description = "[Google Chat PagerDuty Bot] Webhook"
events = [
"incident.acknowledged",
"incident.resolved",
"incident.triggered",
]
active = true
filter {
id = pagerduty_service.main.id
type = "service_reference"
}
type = "webhook_subscription"
}
Additional Information:
I've verified that the configuration in Terraform is identical to what was set up manually.
The webhook is created successfully, but the integration does not function as expected.
Suggestions:
Please advise on any steps I might be missing to ensure the integration works when using Terraform.
Are there any specific attributes or settings I might need to adjust in the pagerduty_webhook_subscription resource to get it working properly with Google Chat?