An Automation Actions action association with a team configures the relation of a specific Action with a Team.
resource "pagerduty_team" "example" {
name = "Engineering"
description = "All engineering"
}
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_team_association" "foo" {
action_id = pagerduty_automation_actions_action.pa_action_example.id
team_id = pagerduty_team.example.id
}
The following arguments are supported:
action_id
- (Required) Id of the action.team_id
- (Required) Id of the team associated to the action.Action team association can be imported using the action_id
and team_id
separated by a colon, e.g.
$ terraform import pagerduty_automation_actions_action_team_association.example 01DER7CUUBF7TH4116K0M4WKPU:PLB09Z