2017-04-29 00:32:23 +02:00
|
|
|
---
|
2019-02-27 20:08:31 +01:00
|
|
|
layout: "commands-providers"
|
2017-04-29 00:32:23 +02:00
|
|
|
page_title: "Command: providers"
|
|
|
|
sidebar_current: "docs-commands-providers"
|
|
|
|
description: |-
|
2019-02-27 20:08:31 +01:00
|
|
|
The `terraform providers` command prints information about the providers used
|
2017-04-29 00:32:23 +02:00
|
|
|
in the current configuration.
|
|
|
|
---
|
|
|
|
|
2017-06-03 02:10:32 +02:00
|
|
|
# Command: providers
|
2017-04-29 00:32:23 +02:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2018-06-22 16:31:23 +02:00
|
|
|
* Existence of any resource instance belonging to a particular provider in
|
2017-04-29 00:32:23 +02:00
|
|
|
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.
|
|
|
|
|
2019-02-27 20:08:31 +01:00
|
|
|
This command is a nested subcommand, meaning that it has further subcommands.
|
|
|
|
These subcommands are listed to the left.
|
|
|
|
|
2017-04-29 00:32:23 +02:00
|
|
|
## Usage
|
|
|
|
|
2017-06-03 02:10:32 +02:00
|
|
|
Usage: `terraform providers [config-path]`
|
2017-04-29 00:32:23 +02:00
|
|
|
|
|
|
|
Pass an explicit configuration path to override the default of using the
|
|
|
|
current working directory.
|
2019-02-27 20:08:31 +01:00
|
|
|
|
|
|
|
Please refer to the subcommands to the left for additional usages.
|