Skip to content

Commit

Permalink
Add new configuration document for connection pagerduty
Browse files Browse the repository at this point in the history
  • Loading branch information
omerosaienni committed Sep 10, 2024
1 parent 022ff0d commit 2c57efd
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/reference/config-files/connection/pagerduty.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: pagerduty
sidebar_label: pagerduty
---

# pagerduty

The `pagerduty` connection can be used to access PagerDuty resources.

```hcl
connection "pagerduty" "my_pagerduty" {
token = "u+_szhLR4FakeTokenGZSA"
}
```

## Arguments

| Name | Type | Required? | Description |
| ------- | ------ | --------- | ----------- |
| `token` | String | Optional | API token |

All arguments are optional, and a `pagerduty` connection with no arguments will behave the same as the [default connection](#default-connection).

## Default Connection

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

```hcl
connection "pagerduty" "default" {
token = env("PAGERDUTY_TOKEN")
}
```

0 comments on commit 2c57efd

Please sign in to comment.