Skip to content

Commit 1158858

Browse files
authored
adds documentation how to configure provider in code (#638)
1 parent 855edd9 commit 1158858

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ Define `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` based off of the crea
7474
* **View and manage policies** (`iam-policies-management`)
7575
* **View environments** (`account-env-read`)
7676

77+
In addition to using environment variables, the provider itself can also be configured.
78+
```
79+
provider "dynatrace" {
80+
dt_env_url = "<env url>"
81+
dt_api_token = "<api token>"
82+
client_id = "<client id>"
83+
client_secret = "<client secret>"
84+
account_id = "<account id>"
85+
}
86+
```
87+
7788
## Exporting existing configuration from a Dynatrace environment
7889
In addition to the out-of-the-box functionality of Terraform, the provider has the ability to be executed as a standalone executable to export an existing configuration from a Dynatrace environment. Refer to the [Export Utility](https://dt-url.net/h203qmc) page for more information.
7990

0 commit comments

Comments
 (0)