PagerDuty / terraform-provider-pagerduty

Terraform PagerDuty provider
https://www.terraform.io/docs/providers/pagerduty/
Mozilla Public License 2.0
204 stars 208 forks source link

Terraform Plan failing throwing 403 due to resource web hook_subscription #855

Open rajat2911 opened 2 months ago

rajat2911 commented 2 months ago

Hi there,

Terraform Version

terraform 1.7.5

Affected Resource(s)

Please list the resources as a list, for example: -webhook_subscriptions

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

resource "pagerduty_webhook_subscription" "webhook" {
  delivery_method {
    type = "http_delivery_method"
    url  = "https://xxxx.pagerduty.com/slack_service/webhooks"
  }
  events = [
    "incident.acknowledged",
    "incident.action_invocation.created",
    "incident.action_invocation.terminated",
    "incident.action_invocation.updated",
    "incident.annotated",
    "incident.delegated",
    "incident.escalated",
    "incident.priority_updated",
    "incident.reassigned",
    "incident.reopened",
    "incident.resolved",
    "incident.responder.added",
    "incident.responder.replied",
    "incident.status_update_published",
    "incident.triggered",
    "incident.unacknowledged"
  ]
  active = true
  filter {
    id   = pagerduty_service.backend[0].id
    type = "service_reference"
  }
  type = "webhook_subscription"
}

Debug Output

Planning failed. Terraform encountered an error while generating this plan.

  |     | ╷   | │ Error: GET API call to https://api.pagerduty.com/webhook_subscriptions/xxxxxx failed 403 Forbidden. Code: 0, Errors: , Message:   | │   | │   | ╵

Panic Output


lanning failed. Terraform encountered an error while generating this plan.
--
  |  
  | ╷
  | │ Error: GET API call to https://api.pagerduty.com/webhook_subscriptions/xxxx failed 403 Forbidden. Code: 0, Errors: <nil>, Message:
  | │
  | │
  | ╵

Expected Behavior

It should not show any error

Actual Behavior

What actually happened? Nothing Happened

rajat2911 commented 2 months ago

Do we have any updates on this ?