Provides access to individual Service Objects of Datadog - PagerDuty integrations. Note that the Datadog - PagerDuty integration must be activated in the Datadog UI in order for this resource to be usable.
resource "datadog_integration_pagerduty_service_object" "testing_foo" {
service_name = "testing_foo"
service_key = "9876543210123456789"
}
resource "datadog_integration_pagerduty_service_object" "testing_bar" {
service_name = "testing_bar"
service_key = "54321098765432109876"
}
service_key
(String, Sensitive) Your Service name associated service key in PagerDuty. This key may also be referred to as an Integration Key or Routing Key in the Pagerduty Integration documentation, UI, and within the Pagerduty Provider for Terraform Note: Since the Datadog API never returns service keys, it is impossible to detect drifts. The best way to solve a drift is to manually mark the Service Object resource with terraform taint to have it destroyed and recreated.service_name
(String) Your Service name in PagerDuty.id
(String) The ID of this resource.Import is supported using the following syntax:
# Pagerduty service object can be imported using the service_name, while the service_key should be passed by setting the environment variable SERVICE_KEY
SERVICE_KEY=${service_key} terraform import datadog_integration_pagerduty_service_object.foo ${service_name}