Skip to content

Commit

Permalink
Merge pull request #804 from imjaroiswebdev/revert-region-env-var
Browse files Browse the repository at this point in the history
Revert "Support for sourcing the provider service region from env var"
  • Loading branch information
imjaroiswebdev authored Jan 24, 2024
2 parents 306ba71 + 9278676 commit 0f81a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pagerduty/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func Provider() *schema.Provider {
"service_region": {
Type: schema.TypeString,
Optional: true,
Default: schema.EnvDefaultFunc("PAGERDUTY_SERVICE_REGION", ""),
Default: "",
},

"use_app_oauth_scoped_token": {
Expand Down
3 changes: 2 additions & 1 deletion website/docs/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The following arguments are supported:
* `user_token` - (Optional) The v2 user level authorization token. It can also be sourced from the `PAGERDUTY_USER_TOKEN` environment variable. See [API Documentation](https://developer.pagerduty.com/docs/ZG9jOjExMDI5NTUx-authentication) for more information.
* `use_app_oauth_scoped_token` - (Optional) Defines the configuration needed for making use of [App Oauth Scoped API token](https://developer.pagerduty.com/docs/e518101fde5f3-obtaining-an-app-o-auth-token) for authenticating API calls.
* `skip_credentials_validation` - (Optional) Skip validation of the token against the PagerDuty API.
* `service_region` - (Optional) The PagerDuty service region to use. Default to empty (uses US region). Supported value: `eu`. This setting also affects configuration of `use_app_oauth_scoped_token` for setting Region of *App Oauth token credentials*. It can also be sourced from the `PAGERDUTY_SERVICE_REGION` environment variable.
* `service_region` - (Optional) The PagerDuty service region to use. Default to empty (uses US region). Supported value: `eu`. This setting also affects configuration of `use_app_oauth_scoped_token` for setting Region of *App Oauth token credentials*.
* `api_url_override` - (Optional) It can be used to set a custom proxy endpoint as PagerDuty client api url overriding `service_region` setup.

The `use_app_oauth_scoped_token` block contains the following arguments:
Expand Down Expand Up @@ -123,3 +123,4 @@ To enable the `SECURE` log level, you must set two environment variables:

* `TF_LOG=INFO`
* `TF_LOG_PROVIDER_PAGERDUTY=SECURE`

0 comments on commit 0f81a82

Please sign in to comment.