Skip to content

Commit

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

# trello

The `trello` connection can be used to access Trello resources.

```hcl
connection "trello" "my_trello" {
api_key = "a25ad2e..."
token = "ATTAb179ea..."
}
```

## Arguments

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

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

## Default Connection

The `trello` connection type includes an implicit, default connection (`connection.trello.default`) that will be configured to set the `api_key` to the `TRELLO_API_KEY` environment variable and the `token` to the `TRELLO_TOKEN` environment variable.

```hcl
connection "trello" "default" {
api_key = env("TRELLO_API_KEY")
token = env("TRELLO_TOKEN")
}
```

0 comments on commit 2c75aa8

Please sign in to comment.