Terraform module that creates service integration in Pagerduty
This module provides settings:
- Create service integration in Pagerduty
provider "pagerduty" {
token = "Pagerduty_Token"
}
module "pagerduty_service" {
source = "[email protected]:hazelops/terraform-pagerduty-service.git"
escalation_policy = module.pagerduty_escalation.id
service_name = "<Service_Name>"
}
provider "pagerduty" {
token = "Pagerduty_Token"
}
module "pagerduty_service" {
source = "[email protected]:hazelops/terraform-pagerduty-service.git"
enabled = true
acknowledgement_timeout = 10
alert_creation = "create_alerts_and_incidents"
escalation_policy = module.pagerduty_escalation.id
service_integration_name = "Datadog"
service_name = "<Service_Name>"
}
Name | Version |
---|---|
terraform | >= 0.12 |
Name | Version |
---|---|
pagerduty | n/a |
No modules.
Name | Type |
---|---|
pagerduty_service.this | resource |
pagerduty_service_integration.this | resource |
pagerduty_vendor.this | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
acknowledgement_timeout | Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the 'null' string. | number |
14400 |
no |
alert_creation | Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value 'create_incidents' is default: events will create an incident that cannot be merged. Value 'create_alerts_and_incidents' is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. | string |
"create_alerts_and_incidents" |
no |
auto_resolve_timeout | Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the 'null' string. | number |
14400 |
no |
enabled | Gives ability to enable or disable a module | bool |
true |
no |
escalation_policy | The escalation policy used by this service. | any |
n/a | yes |
service_integration_name | The name of the service integration (Datadog or Cloudwatch). This will be used in 'pagerduty_vendor'. | string |
"Amazon CloudWatch" |
no |
service_name | Name of service. Make it meaningful | any |
n/a | yes |
Name | Description |
---|---|
service_id | n/a |
service_integration_id | n/a |
service_integration_key | n/a |
Here's a guide on how to set up the correct display of alarms name in Pagerduty