service-complete

devops-workflow/service-complete/pagerduty

Terraform Module HCL PAGERDUTY

Terraform module to manage an opinionated Pagerduty service

Install
module "service-complete" {
source = "devops-workflow/service-complete/pagerduty"
version = "0.0.1"
}
plain text: /constructs/tfmod-devops-workflow-service-complete-pagerduty/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-pagerduty-service-complete ![CircleCI](https://circleci.com/gh/devops-workflow/terraform-pagerduty-service-complete) This is a Terraform module to manage an opinionated PagerDuty service. It will create a service with: escalation policy and integrations for AWS Cloudwatch, Datadog, and an AWS Service endpoint monitor lambda. The idea to define a PagerDuty service for each application with the application's deployment via Terraform. Service, escalation policy, and integrations are unique to each application. Escalation policy is defined with a json file due to limitations in Terraform. A script is run to lookup information in Pagerduty and generate a HCL file with the variable definitions for Terraform to use. Generated file is variables-generated-escalation-policy.tf Pagerduty in

Inputs (11)
NameTypeDescriptionDefault
service_nameanyPagerduty service name required
policy_nameanyEscalation policy name required
service_descriptionanyPagerduty service description"Managed by Terraform"
slack_extension_nameanyPagerduty service Slack extension name""
enabledanySet to false to prevent the module from creating anythingtrue
auto_resolve_timeoutanyPagerduty service auto resolve timeout"null"
policy_descriptionanyEscalation policy description"Managed by Terraform"
policy_loopsanyNumber of times to repeat the escalation policy2
acknowledgement_timeoutanyPagerduty service acknowledgement timeout"null"
escalation_rulesanyData structure generated by script from json file[]
teamsanyData structure generated by script from json file[]
Outputs (9)
cloudwatch_id — AWS Cloudwatch integration ID
cloudwatch_key — AWS Cloudwatch integration key
service_id — Pagerduty service ID
service_monitor_id — AWS Lambda Service Monitor integration ID
cloudwatch_endpoint — Endpoint for webhook events (Integration URL)
datadog_id — Datadog integration ID
datadog_key — Datadog integration key
escalation_policy_id — Escalation policy ID
service_monitor_key — AWS Lambda Service Monitor integration key
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.1
Cloud PAGERDUTY
★ Stars1
Forks5
Total downloads816
Inputs11
Outputs9
Examples2
Namespacedevops-workflow
Updated