website/docs/commands: document TF_REGISTRY_DISCOVERY_RETRY
This commit is contained in:
parent
d0e13320d5
commit
a3f26ccd12
|
@ -368,6 +368,8 @@ func (c *Client) TerraformProviderLocation(provider *regsrc.TerraformProvider, v
|
||||||
return &loc, nil
|
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() {
|
func configureDiscoveryRetry() {
|
||||||
discoveryRetry = defaultRetry
|
discoveryRetry = defaultRetry
|
||||||
|
|
||||||
|
|
|
@ -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).
|
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
|
## TF_CLI_CONFIG_FILE
|
||||||
|
|
||||||
The location of the [Terraform CLI configuration file](/docs/commands/cli-config.html).
|
The location of the [Terraform CLI configuration file](/docs/commands/cli-config.html).
|
||||||
|
|
Loading…
Reference in New Issue