pagerduty

The pagerduty credential can be used to access PagerDuty resources.

credential "pagerduty" "my_pagerduty" {
token = "u+_szhLR4FakeTokenGZSA"
}

Arguments

NameTypeRequired?Description
tokenStringOptionalAPI token

All arguments are optional, and a pagerduty credential with no arguments will behave the same as the default credential.

Default Credential

The pagerduty credential type includes an implicit, default credential (credential.pagerduty.default) that will be configured to set the token to the PAGERDUTY_TOKEN environment variable.

credential "pagerduty" "default" {
token = env("PAGERDUTY_TOKEN")
}