PagerDuty / terraform-provider-pagerduty

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

Error creating Incident Workflow actions that have no inputs #840

Open gsreynolds opened 6 months ago

gsreynolds commented 6 months ago

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.