Difference between revisions of "Terraform graph"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
* https://www.terraform.io/docs/cli/commands/graph.html
 
* https://www.terraform.io/docs/cli/commands/graph.html
  
<pre>
+
 
+
│ Error: Inconsistent dependency lock file
+
[[Error: Inconsistent dependency lock file]]
+
│ The following dependency selections recorded in the lock file are inconsistent with the current configuration:
+
│ The following dependency selections recorded in the [[lock file]] are inconsistent with the current configuration:
│  - provider registry.terraform.io/hashicorp/aws: required by this configuration [[but no version is selected]]
+
│  - provider registry.terraform.io/hashicorp/aws: required by this configuration [[but no version is selected]]
│  - provider registry.terraform.io/hashicorp/kubernetes: required by this configuration but no version is selected
+
│  - provider registry.terraform.io/hashicorp/kubernetes: required by this configuration but no version is selected
│  - provider registry.terraform.io/hashicorp/local: required by this configuration but no version is selected
+
│  - provider registry.terraform.io/hashicorp/local: required by this configuration but no version is selected
│  - provider registry.terraform.io/hashicorp/null: required by this configuration but no version is selected
+
│  - provider registry.terraform.io/hashicorp/null: required by this configuration but no version is selected
│  - provider registry.terraform.io/hashicorp/random: required by this configuration but no version is selected
+
│  - provider registry.terraform.io/hashicorp/random: required by this configuration but no version is selected
│  - provider registry.terraform.io/hashicorp/template: required by this configuration but no version is selected
+
│  - provider registry.terraform.io/hashicorp/template: required by this configuration but no version is selected
+
│ To make the initial dependency selections that will initialize the dependency lock file, run:
+
│ To make the initial dependency selections that will initialize the [[dependency lock file]], run:
│  terraform init
+
│  terraform init
+
</pre>
 
  
  
Line 24: Line 23:
  
 
== Related ==  
 
== Related ==  
* [[DOT]]
+
* <code>[[terraform graph]] 2>[[&1]] | grep module | grep "{" |  cut -d"{" -f1</code>
[[terraform graph]] 2>[[&1]] | grep module | grep "{" |  cut -d"{" -f1
+
 
 +
* <code>terraform graph | [[dot]] -Tpng > graph.png</code>
  
 
== See also ==
 
== See also ==
 
* {{terraform cmd}}
 
* {{terraform cmd}}
* {{terraform}}
 
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Latest revision as of 09:42, 19 April 2023

terraform graph


╷
│ Error: Inconsistent dependency lock file
│
│ The following dependency selections recorded in the lock file are inconsistent with the current configuration:
│   - provider registry.terraform.io/hashicorp/aws: required by this configuration but no version is selected
│   - provider registry.terraform.io/hashicorp/kubernetes: required by this configuration but no version is selected
│   - provider registry.terraform.io/hashicorp/local: required by this configuration but no version is selected
│   - provider registry.terraform.io/hashicorp/null: required by this configuration but no version is selected
│   - provider registry.terraform.io/hashicorp/random: required by this configuration but no version is selected
│   - provider registry.terraform.io/hashicorp/template: required by this configuration but no version is selected
│
│ To make the initial dependency selections that will initialize the dependency lock file, run:
│   terraform init
╵


Error: Module not installed

Related[edit]

  • terraform graph | dot -Tpng > graph.png

See also[edit]

Advertising: