Skip to content

Commit

Permalink
Update docs for .netrc integration with provider downloads (#36022)
Browse files Browse the repository at this point in the history
* Update docs for .netrc integration with provider downloads

* Apply suggestions from code review

Co-authored-by: Rose M Koron <[email protected]>

* tidy up after weird auto-merge

---------

Co-authored-by: Rose M Koron <[email protected]>
  • Loading branch information
liamcervante and rkoron007 authored Nov 21, 2024
1 parent ccdd825 commit af99a73
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions website/docs/language/providers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af99a73

Please sign in to comment.