github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/providers/index.html.md (about)

     1  ---
     2  layout: "language"
     3  page_title: "Providers - Configuration Language"
     4  description: "An overview of how to install and use providers, Terraform plugins that interact with services, cloud providers, and other APIs."
     5  ---
     6  
     7  # Providers
     8  
     9  > **Hands-on:** Try the [Perform CRUD Operations with Providers](https://learn.hashicorp.com/tutorials/terraform/provider-use?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn.
    10  
    11  Terraform relies on plugins called "providers" to interact with cloud providers,
    12  SaaS providers, and other APIs.
    13  
    14  Terraform configurations must declare which providers they require so that
    15  Terraform can install and use them. Additionally, some providers require
    16  configuration (like endpoint URLs or cloud regions) before they can be used.
    17  
    18  ## What Providers Do
    19  
    20  Each provider adds a set of [resource types](/docs/language/resources/index.html)
    21  and/or [data sources](/docs/language/data-sources/index.html) that Terraform can
    22  manage.
    23  
    24  Every resource type is implemented by a provider; without providers, Terraform
    25  can't manage any kind of infrastructure.
    26  
    27  Most providers configure a specific infrastructure platform (either cloud or
    28  self-hosted). Providers can also offer local utilities for tasks like
    29  generating random numbers for unique resource names.
    30  
    31  ## Where Providers Come From
    32  
    33  Providers are distributed separately from Terraform itself, and each provider
    34  has its own release cadence and version numbers.
    35  
    36  The [Terraform Registry](https://registry.terraform.io/browse/providers)
    37  is the main directory of publicly available Terraform providers, and hosts
    38  providers for most major infrastructure platforms.
    39  
    40  ## Provider Documentation
    41  
    42  Each provider has its own documentation, describing its resource
    43  types and their arguments.
    44  
    45  The [Terraform Registry](https://registry.terraform.io/browse/providers)
    46  includes documentation for a wide range of providers developed by HashiCorp, third-party vendors, and our Terraform community. Use the
    47  "Documentation" link in a provider's header to browse its documentation.
    48  
    49  Provider documentation in the Registry is versioned; you can use the version
    50  menu in the header to change which version you're viewing.
    51  
    52  For details about writing, generating, and previewing provider documentation,
    53  see the [provider publishing documentation](/docs/registry/providers/docs.html).
    54  
    55  ## How to Use Providers
    56  
    57  To use resources from a given provider, you need to include some information
    58  about it in your configuration. See the following pages for details:
    59  
    60  - [Provider Requirements](/docs/language/providers/requirements.html)
    61    documents how to declare providers so Terraform can install them.
    62  
    63  - [Provider Configuration](/docs/language/providers/configuration.html)
    64    documents how to configure settings for providers.
    65  
    66  - [Dependency Lock File](/docs/language/dependency-lock.html)
    67    documents an additional HCL file that can be included with a configuration,
    68    which tells Terraform to always use a specific set of provider versions.
    69  
    70  ## Provider Installation
    71  
    72  - Terraform Cloud and Terraform Enterprise install providers as part of every run.
    73  
    74  - Terraform CLI finds and installs providers when
    75    [initializing a working directory](/docs/cli/init/index.html). It can
    76    automatically download providers from a Terraform registry, or load them from
    77    a local mirror or cache. If you are using a persistent working directory, you
    78    must reinitialize whenever you change a configuration's providers.
    79  
    80      To save time and bandwidth, Terraform CLI supports an optional plugin
    81      cache. You can enable the cache using the `plugin_cache_dir` setting in
    82      [the CLI configuration file](/docs/cli/config/config-file.html).
    83  
    84  To ensure Terraform always installs the same provider versions for a given
    85  configuration, you can use Terraform CLI to create a
    86  [dependency lock file](/docs/language/dependency-lock.html)
    87  and commit it to version control along with your configuration. If a lock file
    88  is present, Terraform Cloud, CLI, and Enterprise will all obey it when
    89  installing providers.
    90  
    91  > **Hands-on:** Try the [Lock and Upgrade Provider Versions](https://learn.hashicorp.com/tutorials/terraform/provider-versioning?in=terraform/configuration-language&utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS) tutorial on HashiCorp Learn.
    92  
    93  ## How to Find Providers
    94  
    95  To find providers for the infrastructure platforms you use, browse
    96  [the providers section of the Terraform Registry](https://registry.terraform.io/browse/providers).
    97  
    98  Some providers on the Registry are developed and published by HashiCorp, some
    99  are published by platform maintainers, and some are published by users and
   100  volunteers. The provider listings use the following badges to indicate who
   101  develops and maintains a given provider.
   102  
   103  <table border="0" style="border-collapse: collapse; width: 100%;">
   104  <tbody>
   105  <tr style="height: 21px;">
   106  <td style="width: 12.4839%; height: 21px;"><strong>Tier</strong></td>
   107  <td style="width: 55.7271%; height: 21px;"><strong>Description</strong></td>
   108  <td style="width: 31.7889%; height: 21px;"><strong>Namespace</strong></td>
   109  </tr>
   110  <tr style="height: 21px;">
   111  <td style="width: 12.4839%; height: 21px;"><img src="/docs/registry/providers/images/official-tier.png" alt="" /></td>
   112  <td style="width: 55.7271%; height: 21px;"><i><span style="font-weight: 400;">Official providers are owned and maintained by HashiCorp </span></i></td>
   113  <td style="width: 31.7889%; height: 21px;"><code><span style="font-weight: 400;">hashicorp</span></code></td>
   114  </tr>
   115  <tr style="height: 21px;">
   116  <td style="width: 12.4839%; height: 21px;"><img src="/docs/registry/providers/images/verified-tier.png" alt="" /></td>
   117  <td style="width: 55.7271%; height: 21px;"><i><span style="font-weight: 400;">Verified providers are owned and maintained by third-party technology partners. Providers in this tier indicate HashiCorp has verified the authenticity of the Provider&rsquo;s publisher, and that the partner is a member of the </span></i><a href="https://www.hashicorp.com/ecosystem/become-a-partner/"><i><span style="font-weight: 400;">HashiCorp Technology Partner Program</span></i></a><i><span style="font-weight: 400;">.</span></i></td>
   118  <td style="width: 31.7889%; height: 21px;"><span style="font-weight: 400;">Third-party organization, e.g. </span><code><span style="font-weight: 400;">mongodb/mongodbatlas</span></code></td>
   119  </tr>
   120  <tr style="height: 21px;">
   121  <td style="width: 12.4839%; height: 21px;"><img src="/docs/registry/providers/images/community-tier.png" alt="" /></td>
   122  <td style="width: 55.7271%; height: 21px;">Community providers are published to the Terraform Registry by individual maintainers, groups of maintainers, or other members of the Terraform community.</td>
   123  <td style="width: 31.7889%; height: 21px;"><br />Maintainer&rsquo;s individual or organization account, e.g. <code>DeviaVir/gsuite</code></td>
   124  </tr>
   125  <tr style="height: 21px;">
   126  <td style="width: 12.4839%; height: 21px;"><img src="/docs/registry/providers/images/archived-tier.png" alt="" /></td>
   127  <td style="width: 55.7271%; height: 21px;">Archived Providers are Official or Verified Providers that are no longer maintained by HashiCorp or the community. This may occur if an API is deprecated or interest was low.</td>
   128  <td style="width: 31.7889%; height: 21px;"><code>hashicorp</code> or third-party</td>
   129  </tr>
   130  </tbody>
   131  </table>
   132  
   133  
   134  ## How to Develop Providers
   135  
   136  Providers are written in Go, using the Terraform Plugin SDK. For more
   137  information on developing providers, see:
   138  
   139  - The [Plugin Development](/docs/extend/index.html) documentation
   140  - The [Call APIs with Terraform Providers](https://learn.hashicorp.com/collections/terraform/providers?utm_source=WEBSITE&utm_medium=WEB_IO&utm_offer=ARTICLE_PAGE&utm_content=DOCS)
   141    collection on HashiCorp Learn