Skip to content

Commit 94ec972

Browse files
authored
Update readme with short introduction (#178)
* Add setup instructions * Add links to resources available
1 parent ead622c commit 94ec972

File tree

2 files changed

+92
-2
lines changed

2 files changed

+92
-2
lines changed

docs/index.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,52 @@ description: |-
66

77
# Sentry Provider
88

9-
Terraform provider for [Sentry](https://sentry.io).
9+
Terraform provider for [Sentry](https://sentry.io). The provider utilises the [Web APIs](https://docs.sentry.io/api/) to interact with Sentry resources:
10+
11+
**Organization**
12+
13+
- Manage [sentry_organization](resources/organization.md)
14+
- Manage [sentry_team](resources/team.md)
15+
16+
**Project**
17+
18+
- Manage [sentry_project](resources/project.md)
19+
- Manage client keys using [sentry_key](resources/key.md)
20+
21+
**Alerts and Dashboard**
22+
23+
- Manage [sentry_dashboard](resources/dashboard.md)
24+
- Manage [sentry_issue_alert](resources/issue_alert.md)
25+
- Manage [sentry_metric_alert](resources/metric_alert.md)
26+
27+
## Setup
28+
29+
### Authentication
30+
31+
You will need to configure the provider by providing an authentication token. You can create an authentication token within Sentry by [creating an internal integration](https://docs.sentry.io/product/integrations/integration-platform/internal-integration/#auth-tokens). This is also available for self-hosted Sentry.
32+
33+
```terraform
34+
provider "sentry" {
35+
token = "my-auth-token"
36+
}
37+
```
38+
39+
It's best practice not to store the authentication token in plain text. As an alternative, the provider can source the authentication token from the `SENTRY_AUTH_TOKEN` environment variable. If you choose to do this, you can omit the token variable from the configuration block above.
40+
41+
```terraform
42+
provider "sentry" {}
43+
```
44+
45+
### Self-hosted Sentry
46+
47+
If you are self-hosting Sentry, you can set the base URL here. The URL format must be in the format `https://[hostname]/api/`.
48+
49+
```terraform
50+
# Configure the Sentry Provider
51+
provider "sentry" {
52+
base_url = "https://example.com/api/"
53+
}
54+
```
1055

1156
## Example Usage
1257

templates/index.md.tmpl

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,52 @@ description: |-
66

77
# Sentry Provider
88

9-
Terraform provider for [Sentry](https://sentry.io).
9+
Terraform provider for [Sentry](https://sentry.io). The provider utilises the [Web APIs](https://docs.sentry.io/api/) to interact with Sentry resources:
10+
11+
**Organization**
12+
13+
- Manage [sentry_organization](resources/organization.md)
14+
- Manage [sentry_team](resources/team.md)
15+
16+
**Project**
17+
18+
- Manage [sentry_project](resources/project.md)
19+
- Manage client keys using [sentry_key](resources/key.md)
20+
21+
**Alerts and Dashboard**
22+
23+
- Manage [sentry_dashboard](resources/dashboard.md)
24+
- Manage [sentry_issue_alert](resources/issue_alert.md)
25+
- Manage [sentry_metric_alert](resources/metric_alert.md)
26+
27+
## Setup
28+
29+
### Authentication
30+
31+
You will need to configure the provider by providing an authentication token. You can create an authentication token within Sentry by [creating an internal integration](https://docs.sentry.io/product/integrations/integration-platform/internal-integration/#auth-tokens). This is also available for self-hosted Sentry.
32+
33+
```terraform
34+
provider "sentry" {
35+
token = "my-auth-token"
36+
}
37+
```
38+
39+
It's best practice not to store the authentication token in plain text. As an alternative, the provider can source the authentication token from the `SENTRY_AUTH_TOKEN` environment variable. If you choose to do this, you can omit the token variable from the configuration block above.
40+
41+
```terraform
42+
provider "sentry" {}
43+
```
44+
45+
### Self-hosted Sentry
46+
47+
If you are self-hosting Sentry, you can set the base URL here. The URL format must be in the format `https://[hostname]/api/`.
48+
49+
```terraform
50+
# Configure the Sentry Provider
51+
provider "sentry" {
52+
base_url = "https://example.com/api/"
53+
}
54+
```
1055

1156
## Example Usage
1257

0 commit comments

Comments
 (0)