pagerduty_automation_actions_action

An Automation Actions action invokes jobs and workflows that are staged in Runbook Automation or Process Automation. It may also execute a command line script run by a Process Automation runner installed in your infrastructure.

Example Usage

resource "pagerduty_automation_actions_action" "pa_action_example" {
  name = "PA Action created via TF"
  description = "Description of the PA Action created via TF"
  action_type = "process_automation"
  action_data_reference {
    process_automation_job_id = "P123456"
  }
}

resource "pagerduty_automation_actions_action" "script_action_example" {
  name = "Script Action created via TF"
  description = "Description of the Script Action created via TF"
  action_type = "script"
  action_data_reference {
    script = "print(\"Hello from a Python script!\")"
    invocation_command = "/usr/local/bin/python3"
  }
}

Argument Reference

The following arguments are supported:

Action Data (action_data_reference) supports the following:

Attributes Reference

The following attributes are exported:

Import

Actions can be imported using the id, e.g.

$ terraform import pagerduty_automation_actions_action.example 01DER7CUUBF7TH4116K0M4WKPU