Skip to content

Commit a5ab384

Browse files
committed
Revert "ref: update provider docs on changing data storage location (#432)"
This reverts commit 8a4f166.
1 parent 3efa8a7 commit a5ab384

File tree

4 files changed

+13
-42
lines changed

4 files changed

+13
-42
lines changed

docs/index.md

+4-20
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,13 @@ provider "sentry" {
4242
## Example Usage
4343

4444
```terraform
45-
# Configure the Sentry Provider for US data storage location (default)
46-
provider "sentry" {
47-
token = var.sentry_auth_token
48-
49-
# If you want to be explicit, you can specify the base URL for the US region.
50-
# base_url = "https://us.sentry.io/api/"
51-
# or
52-
# base_url = "https://sentry.io/api/"
53-
}
54-
55-
# Configure the Sentry Provider for EU data storage location
56-
provider "sentry" {
57-
token = var.sentry_auth_token
58-
59-
base_url = "https://de.sentry.io/api/"
60-
}
61-
62-
# Configure the Sentry Provider for self-hosted Sentry
45+
# Configure the Sentry Provider
6346
provider "sentry" {
6447
token = var.sentry_auth_token
6548
49+
# If you are self-hosting Sentry, set the base URL here.
6650
# The URL format must be "https://[hostname]/api/".
67-
base_url = "https://example.com/api/"
51+
# base_url = "https://example.com/api/"
6852
}
6953
```
7054

@@ -73,7 +57,7 @@ provider "sentry" {
7357

7458
### Optional
7559

76-
- `base_url` (String) The target Sentry Base API URL follows the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`, which is an alias for `https://us.sentry.io/api/` (US data storage location). To change the data storage location to the EU, set the value to `https://de.sentry.io/api/`. This value is required for non-US storage locations or Sentry On-Premise deployments. The value can be sourced from the `SENTRY_BASE_URL` environment variable.
60+
- `base_url` (String) The target Sentry Base API URL in the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`. The value must be provided when working with Sentry On-Premise. The value can be sourced from the `SENTRY_BASE_URL` environment variable.
7761
- `token` (String, Sensitive) The authentication token used to connect to Sentry. The value can be sourced from the `SENTRY_AUTH_TOKEN` environment variable.
7862

7963

examples/provider/provider.tf

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
1-
# Configure the Sentry Provider for US data storage location (default)
2-
provider "sentry" {
3-
token = var.sentry_auth_token
4-
5-
# If you want to be explicit, you can specify the base URL for the US region.
6-
# base_url = "https://us.sentry.io/api/"
7-
# or
8-
# base_url = "https://sentry.io/api/"
9-
}
10-
11-
# Configure the Sentry Provider for EU data storage location
12-
provider "sentry" {
13-
token = var.sentry_auth_token
14-
15-
base_url = "https://de.sentry.io/api/"
16-
}
17-
18-
# Configure the Sentry Provider for self-hosted Sentry
1+
# Configure the Sentry Provider
192
provider "sentry" {
203
token = var.sentry_auth_token
214

5+
# If you are self-hosting Sentry, set the base URL here.
226
# The URL format must be "https://[hostname]/api/".
23-
base_url = "https://example.com/api/"
7+
# base_url = "https://example.com/api/"
248
}

internal/provider/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (p *SentryProvider) Schema(ctx context.Context, req provider.SchemaRequest,
4343
Sensitive: true,
4444
},
4545
"base_url": schema.StringAttribute{
46-
MarkdownDescription: "The target Sentry Base API URL follows the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`, which is an alias for `https://us.sentry.io/api/` (US data storage location). To change the data storage location to the EU, set the value to `https://de.sentry.io/api/`. This value is required for non-US storage locations or Sentry On-Premise deployments. The value can be sourced from the `SENTRY_BASE_URL` environment variable.",
46+
MarkdownDescription: "The target Sentry Base API URL in the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`. The value must be provided when working with Sentry On-Premise. The value can be sourced from the `SENTRY_BASE_URL` environment variable.",
4747
Optional: true,
4848
},
4949
},

sentry/provider.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ func NewProvider(version string) func() *schema.Provider {
2020
p := &schema.Provider{
2121
Schema: map[string]*schema.Schema{
2222
"token": {
23-
Description: "The authentication token used to connect to Sentry. The value can be sourced from the `SENTRY_AUTH_TOKEN` environment variable.",
23+
Description: "The authentication token used to connect to Sentry. The value can be sourced from " +
24+
"the `SENTRY_AUTH_TOKEN` environment variable.",
2425
Type: schema.TypeString,
2526
Optional: true,
2627
DefaultFunc: schema.MultiEnvDefaultFunc([]string{"SENTRY_AUTH_TOKEN", "SENTRY_TOKEN"}, nil),
2728
Sensitive: true,
2829
},
2930
"base_url": {
30-
Description: "The target Sentry Base API URL follows the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`, which is an alias for `https://us.sentry.io/api/` (US data storage location). To change the data storage location to the EU, set the value to `https://de.sentry.io/api/`. This value is required for non-US storage locations or Sentry On-Premise deployments. The value can be sourced from the `SENTRY_BASE_URL` environment variable.",
31+
Description: "The target Sentry Base API URL in the format `https://[hostname]/api/`. " +
32+
"The default value is `https://sentry.io/api/`. The value must be provided when working with " +
33+
"Sentry On-Premise. The value can be sourced from the `SENTRY_BASE_URL` environment variable.",
3134
Type: schema.TypeString,
3235
Optional: true,
3336
DefaultFunc: schema.EnvDefaultFunc("SENTRY_BASE_URL", "https://sentry.io/api/"),

0 commit comments

Comments
 (0)