website/docs/commands: document TF_REGISTRY_DISCOVERY_RETRY

This commit is contained in:
findkim 2020-02-14 13:43:10 -06:00
parent d0e13320d5
commit a3f26ccd12
2 changed files with 8 additions and 0 deletions

View File

@ -368,6 +368,8 @@ func (c *Client) TerraformProviderLocation(provider *regsrc.TerraformProvider, v
return &loc, nil
}
// configureDiscoveryRetry configures the number of retries the registry client
// will attempt for requests with retryable errors, like 502 status codes
func configureDiscoveryRetry() {
discoveryRetry = defaultRetry

View File

@ -114,6 +114,12 @@ exact output differences can change between minor Terraform versions.
For more details see [Running Terraform in Automation](https://learn.hashicorp.com/terraform/development/running-terraform-in-automation).
## TF_REGISTRY_DISCOVERY_RETRY
Set `TF_REGISTRY_DISCOVERY_RETRY` to configure the max number of request retries
the remote registry client will attempt for client connection errors or
500-range responses that are safe to retry.
## TF_CLI_CONFIG_FILE
The location of the [Terraform CLI configuration file](/docs/commands/cli-config.html).