Update docs for .netrc integration with provider downloads (#36022)

* Update docs for .netrc integration with provider downloads

* Apply suggestions from code review

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>

* tidy up after weird auto-merge

---------

Co-authored-by: Rose M Koron <32436232+rkoron007@users.noreply.github.com>
pull/36070/head
Liam Cervante 1 year ago committed by GitHub
parent ccdd825dbf
commit af99a73b54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -93,6 +93,27 @@ installing providers.
> **Hands-on:** Try the [Lock and Upgrade Provider Versions](/terraform/tutorials/configuration-language/provider-versioning?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial.
### Private Providers
If you are using a provider that is not in a Hashicorp-hosted registry, you may
need to attach additional credentials to your requests to external registries.
You do not need these credentials if your provider is in the Terraform public
registry or the HCP Terraform private registry.
By default, Terraform only authenticates the opening request from a provider to
the registry. The registry responds with
[follow-up URLs](/terraform/internals/provider-registry-protocol#find-a-provider-package)
that Terraform makes requests to, such as telling Terraform to download the
provider or the `SHASUMS` file. Hashicorp-hosted registries do not require
additional authentication for these follow-up requests. If your registry does
require additional credentials for follow-up requests, you can use a `.netrc`
file to provide those credentials.
By default, Terraform searches for the `.netrc` file in your `HOME` directory.
However, you can override the default filesystem location by setting the `NETRC`
environment variable. For information on the format of`.netrc`, refer to the
[`curl` documentation](https://everything.curl.dev/usingcurl/netrc).
## How to Find Providers
To find providers for the infrastructure platforms you use, browse

Loading…
Cancel
Save