Provides a Datadog - PagerDuty resource. This can be used to create and manage Datadog - PagerDuty integration. See also PagerDuty Integration Guide.
# Note: Until terraform-provider-datadog version 2.1.0, service objects under the services key were specified inside the datadog_integration_pagerduty resource. This was incompatible with multi-configuration-file setups, where users wanted to have individual service objects controlled from different Terraform configuration files. The recommended approach now is specifying service objects as individual resources using datadog_integration_pagerduty_service_object.
# Services as Individual Resources
resource "datadog_integration_pagerduty" "pd" {
schedules = [
"https://ddog.pagerduty.com/schedules/X123VF",
"https://ddog.pagerduty.com/schedules/X321XX"
]
subdomain = "ddog"
api_token = "38457822378273432587234242874"
}
resource "datadog_integration_pagerduty_service_object" "testing_foo" {
# when creating the integration object for the first time, the service
# objects have to be created *after* the integration
depends_on = ["datadog_integration_pagerduty.pd"]
service_name = "testing_foo"
service_key = "9876543210123456789"
}
resource "datadog_integration_pagerduty_service_object" "testing_bar" {
depends_on = ["datadog_integration_pagerduty.pd"]
service_name = "testing_bar"
service_key = "54321098765432109876"
}
subdomain
(String) Your PagerDuty account’s personalized subdomain name.api_token
(String, Sensitive) Your PagerDuty API token.schedules
(List of String) Array of your schedule URLs.id
(String) The ID of this resource.