terraform-provider-pagerduty icon indicating copy to clipboard operation
terraform-provider-pagerduty copied to clipboard

Error creating Incident Workflow actions that have no inputs

Open gsreynolds opened this issue 10 months ago • 0 comments

The Create Zoom Meeting action has no inputs, but the Terraform provider doesn't support that currently:

resource "pagerduty_incident_workflow" "major_incident" {
  description = "Major Incident
  name        = "Major Incident"
  team        = null
  step {
    action = "pagerduty.com:incident-workflows:create-zoom-meeting:4"
    name   = "Create a Zoom Meeting"
  }
}

results in an error.

So nonexistent inputs are required to successfully create the Incident Workflow

resource "pagerduty_incident_workflow" "major_incident" {
  description = "Major Incident
  name        = "Major Incident"
  team        = null
  step {
    action = "pagerduty.com:incident-workflows:create-zoom-meeting:4"
    name   = "Create a Zoom Meeting"
    input {
      name  = "Not Required"
      value = "Not Required"
    }
  }
}

however, since that input doesn't exist, that workaround introduces a perma-diff as although the action will be created, the fake input will not.

Ideally the steps should accept zero or more inputs, not one or more as currently.

gsreynolds avatar Apr 03 '24 10:04 gsreynolds