A basic demo(gorgon) of building out a PagerDuty instance with Terraform or OpenTofu.
- PagerDuty:
- Access to a domain: https://www.pagerduty.com/sign-up/
- Access to a REST API Token from target domain: https://support.pagerduty.com/docs/generating-api-keys
- Terraform or OpenTofu:
- Terraform Install Instructions - minimum version of v0.13 required
- OpenTofu Install Instructions
-
Clone repo into appropriate location and enter directory.
$ git clone https://github.com/mattlinebarger/tf-pd-stranger-things-demo.git
-
Initialize Terraform or OpenTofu Workspace
$ terraform init
or
$ tofu init
-
Apply
$ terraform apply -var="API_TOKEN=TOKEN_HERE" -var="EMAIL_DOMAIN=DOMAIN_HERE" -var="TZ=TIMEZONE_HERE"
or
$ tofu apply -var="API_TOKEN=TOKEN_HERE" -var="EMAIL_DOMAIN=DOMAIN_HERE" -var="TZ=TIMEZONE_HERE"
Note:
EMAIL_DOMAIN
andTZ
are optional variables. If left blankexample.com
andAmerica/Chicago
will be used as defaults.