Difference between revisions of "Terraform providers (command)"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{Draft}} == See also == * {{terraform cmd}} * {{terraform}} Category:Terraform")
 
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lowercase}}
 +
<code>terraform providers</code> 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
 +
 
 +
* <code>[[terraform providers --help]]</code>
 +
 
 +
== Examples ==
 +
 
 +
* [[Learn-terraform-provision-eks-cluster: terraform providers]]
 +
 
 +
 
 +
 
 +
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 ==
 +
* <code>[[terraform provider]]</code>
 +
* <code>[[main.tf]]</code>
 +
* <code>[[terraform init]]</code>
 +
* <code>[[Error: Failed to query available provider packages]]</code>
 +
* [[Terraform backends]]
  
 
== See also ==
 
== See also ==
* {{terraform cmd}}
+
* {{terraform providers cmd|terraform providers}}
* {{terraform}}
+
* {{Terraform providers}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 07:23, 12 February 2024

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[edit]


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[edit]

See also[edit]

Advertising: