summaryrefslogtreecommitdiff
path: root/vendor/github.com/hashicorp/terraform/website/docs/commands/providers.html.markdown
blob: 50bf4170d9f488f88e89dcc3621cbc75c60c6be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
layout: "docs"
page_title: "Command: providers"
sidebar_current: "docs-commands-providers"
description: |-
  The "providers" sub-command prints information about the providers used
  in the current configuration.
---

# Command: providers

The `terraform providers` command prints information about the providers
used in the current configuration.

Provider dependencies are created in several different ways:

* Explicit use of a `provider` block in configuration, optionally including
  a version constraint.

* Use of any resource belonging to a particular provider in a `resource` or
  `data` block in configuration.

* Existance of any resource instance belonging to a particular provider in
  the current _state_. For example, if a particular resource is removed
  from configuration, it continues to create a dependency on its provider
  until its instances have been destroyed.

This command gives an overview of all of the current dependencies, as an aid
to understanding why a particular provider is needed.

## Usage

Usage: `terraform providers [config-path]`

Pass an explicit configuration path to override the default of using the
current working directory.