Skip to content

Commit 3efa8a7

Browse files
committed
Revert "fix: proxy information"
This reverts commit 1b4024f.
1 parent 8d82810 commit 3efa8a7

File tree

4 files changed

+15
-21
lines changed

4 files changed

+15
-21
lines changed

Diff for: docs/index.md

+7-10
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,17 @@ provider "sentry" {
4242
## Example Usage
4343

4444
```terraform
45-
# Configure the Sentry Provider. Sentry will proxy most requests to the correct region based on the organization.
46-
# To avoid the overhead of the proxy, you can configure the provider to use a specific region.
47-
provider "sentry" {
48-
token = var.sentry_auth_token
49-
}
50-
51-
# Configure the Sentry Provider for the US region
45+
# Configure the Sentry Provider for US data storage location (default)
5246
provider "sentry" {
5347
token = var.sentry_auth_token
5448
55-
base_url = "https://us.sentry.io/api/"
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/"
5653
}
5754
58-
# Configure the Sentry Provider for the EU region
55+
# Configure the Sentry Provider for EU data storage location
5956
provider "sentry" {
6057
token = var.sentry_auth_token
6158
@@ -76,7 +73,7 @@ provider "sentry" {
7673

7774
### Optional
7875

79-
- `base_url` (String) The target Sentry Base API URL follows the format `https://[hostname]/api/`, and this URL must end with the `/api/` path, including the trailing slash. The default value is `https://sentry.io/api/`, which proxies most requests to the appropriate region based on your organization. To avoid additional round trips, it is preferable to set the region URL explicitly. Use `https://us.sentry.io/api/` for the US region and `https://de.sentry.io/api/` for the EU region. This value is required for Sentry On-Premise deployments and can be sourced from the `SENTRY_BASE_URL` environment variable.
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.
8077
- `token` (String, Sensitive) The authentication token used to connect to Sentry. The value can be sourced from the `SENTRY_AUTH_TOKEN` environment variable.
8178

8279

Diff for: examples/provider/provider.tf

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
# Configure the Sentry Provider. Sentry will proxy most requests to the correct region based on the organization.
2-
# To avoid the overhead of the proxy, you can configure the provider to use a specific region.
3-
provider "sentry" {
4-
token = var.sentry_auth_token
5-
}
6-
7-
# Configure the Sentry Provider for the US region
1+
# Configure the Sentry Provider for US data storage location (default)
82
provider "sentry" {
93
token = var.sentry_auth_token
104

11-
base_url = "https://us.sentry.io/api/"
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/"
129
}
1310

14-
# Configure the Sentry Provider for the EU region
11+
# Configure the Sentry Provider for EU data storage location
1512
provider "sentry" {
1613
token = var.sentry_auth_token
1714

Diff for: 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/`, and this URL must end with the `/api/` path, including the trailing slash. The default value is `https://sentry.io/api/`, which proxies most requests to the appropriate region based on your organization. To avoid additional round trips, it is preferable to set the region URL explicitly. Use `https://us.sentry.io/api/` for the US region and `https://de.sentry.io/api/` for the EU region. This value is required for Sentry On-Premise deployments and can be sourced from the `SENTRY_BASE_URL` environment variable.",
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.",
4747
Optional: true,
4848
},
4949
},

Diff for: sentry/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewProvider(version string) func() *schema.Provider {
2727
Sensitive: true,
2828
},
2929
"base_url": {
30-
Description: "The target Sentry Base API URL follows the format `https://[hostname]/api/`, and this URL must end with the `/api/` path, including the trailing slash. The default value is `https://sentry.io/api/`, which proxies most requests to the appropriate region based on your organization. To avoid additional round trips, it is preferable to set the region URL explicitly. Use `https://us.sentry.io/api/` for the US region and `https://de.sentry.io/api/` for the EU region. This value is required for Sentry On-Premise deployments and can be sourced from the `SENTRY_BASE_URL` environment variable.",
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.",
3131
Type: schema.TypeString,
3232
Optional: true,
3333
DefaultFunc: schema.EnvDefaultFunc("SENTRY_BASE_URL", "https://sentry.io/api/"),

0 commit comments

Comments
 (0)