Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

hazelops/terraform-pagerduty-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️This repository is not maintained⚠️

⚠️This repository is outdated and deprecated⚠️

Terraform Pagerduty Service

Terraform module that creates service integration in Pagerduty

Description

This module provides settings:

  • Create service integration in Pagerduty

Usage

Miminal setup

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>"
}

Full setup

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>"
}

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
pagerduty n/a

Modules

No modules.

Resources

Name Type
pagerduty_service.this resource
pagerduty_service_integration.this resource
pagerduty_vendor.this data source

Inputs

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

Outputs

Name Description
service_id n/a
service_integration_id n/a
service_integration_key n/a

Pagerduty settings

Here's a guide on how to set up the correct display of alarms name in Pagerduty

Terraform Module Registry

Hazelops logo Terraform Pagerduty Service

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages