diff --git a/README.md b/README.md index 037c74dc..49ddda22 100644 --- a/README.md +++ b/README.md @@ -88,8 +88,14 @@ resource "hpeuxi_sensor_group_assignment" "my_uxi_sensor_group_assignment" { ### Export API client credentials as environment variables ```bash -export GREENLAKE_UXI_CLIENT_ID= -export GREENLAKE_UXI_CLIENT_SECRET= +export HPEUXI_CLIENT_ID= +export HPEUXI_CLIENT_SECRET= +``` + +To override the host against which the API requests are made, use the env var as shown below, else UXI production is used as the default. + +```bash +export HPEUXI_HOST_OVERRIDE=https://api.staging.capedev.io ``` ### Initialize Terraform working directory: diff --git a/docs/index.md b/docs/index.md index 7a5d0661..9e295e96 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,5 +23,5 @@ provider "hpeuxi" { ### Optional -- `client_id` (String) The Client ID as obtained from HPE GreenLake API client credentials. It is recommended that this configuration is left blank and the Client ID is exported as the `GREENLAKE_UXI_CLIENT_ID` environment variable instead. -- `client_secret` (String, Sensitive) The Client Secret as obtained from HPE GreenLake API client credentials. It is recommended that this configuration is left blank and the Client Secret is exported as the `GREENLAKE_UXI_CLIENT_SECRET` environment variable instead. +- `client_id` (String) The Client ID as obtained from HPE GreenLake API client credentials. It is recommended that this configuration is left blank and the Client ID is exported as the `HPEUXI_CLIENT_ID` environment variable instead. +- `client_secret` (String, Sensitive) The Client Secret as obtained from HPE GreenLake API client credentials. It is recommended that this configuration is left blank and the Client Secret is exported as the `HPEUXI_CLIENT_SECRET` environment variable instead.