Difference between revisions of "Terraform providers (command)"

From wikieduonline
Jump to navigation Jump to search
Line 59: Line 59:
 
* <code>[[terraform init]]</code>
 
* <code>[[terraform init]]</code>
 
* <code>[[Error: Failed to query available provider packages]]</code>
 
* <code>[[Error: Failed to query available provider packages]]</code>
 +
* [[Terraform backends]]
  
 
== See also ==
 
== See also ==

Revision as of 08:21, 17 November 2022

terraform providers prints a tree of the Terraform providers used in the configuration.

provider.tf


terraform providers lock      Write out dependency locks for the configured providers
terraform providers mirror    Save local copies of all required provider plugins
terraform providers schema    Show schemas for the providers used in the configuration

Examples


terraform providers

Providers required by configuration:
.
└── provider[registry.terraform.io/hashicorp/aws]
Providers required by state:

   provider[registry.terraform.io/hashicorp/local]
   provider[registry.terraform.io/hashicorp/null]
   provider[registry.terraform.io/hashicorp/random]
   provider[registry.terraform.io/terraform-aws-modules/http]
   provider[registry.terraform.io/hashicorp/aws]
   provider[registry.terraform.io/hashicorp/external]
   provider[registry.terraform.io/hashicorp/kubernetes]


terraform providers
╷
│ Error: No configuration files
│
│ The directory /root contains no Terraform configuration files.
╵


provider.tf
provider "aws" {
  profile = "default"
  region  = "us-west-2"
}

Related terms

See also

Advertising: