Terraform cannot create Webhook integration.

XMLWordPrintable

    • 1

      Opsgenie provider [documentation hosted here|
      https://registry.terraform.io/providers/opsgenie/opsgenie/latest/docs/resources/api_integration] suggests we should be able to create Webhook integration using the resource opsgenie_api_integration.

      This example should create a webhook integration.

      resource "opsgenie_api_integration" "test3" {
        name  = "webhook-int"
        type  = "Webhook"
      
        responders {
          type = "user"
          id   = "x1x2x3-4x5x6x7-x8x9x0-c1c2c3"
        }
        enabled                 = false
        allow_write_access      = false
        suppress_notifications  = true
        webhook_url             = "https://api.example.com/v1"
        headers = {
          header1 = value1
        }
      } 

      Instead, it throws a status code 422 error with the message [addAlertDetails] must not be null,  *  I have determined the missing parameter *addAlertDetails takes a boolean as its value please can you confirm if this field is being passed by the opsgenie terraform provider? 

       

       

            Assignee:
            Unassigned
            Reporter:
            Allen Barnard (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: