Editing Terraform validate

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>[[terraform]] validate</code> <ref>https://www.terraform.io/docs/cli/commands/validate.html</ref> validates the configuration files in a directory.
+
<code>[[terraform]] validate</code>
 
+
* https://www.terraform.io/docs/cli/commands/validate.html
* <code>terraform validate</code>
 
* <code>terraform validate && [[terraform plan]]</code>
 
 
 
<code>terraform validate</code> requires an initialized working directory with any referenced plugins and modules installed. Execute: <code>[[terraform init -backend=false]]</code>
 
  
 
== Example ==
 
== Example ==
Line 11: Line 7:
 
  Success! The configuration is valid.
 
  Success! The configuration is valid.
  
== Examples with errors ==
 
* <code>[[Error: Could not load plugin]]</code>
 
* <code>[[Error: Unsupported argument ... An argument named "XXX" is not expected here.]]</code>
 
  
== Related ==
+
  terraform validate
* <code>[[terraform init -backend=false]]</code>
+
* <code>[[terraform fmt]]</code>
+
│ Error: Could not load plugin
* <code>[[terraform fmt -check]]</code>
+
 +
 +
│ Plugin reinitialization required. Please run "[[terraform init]]".
 +
 +
│ Plugins are external binaries that Terraform uses to access and manipulate
 +
│ resources. The configuration provided requires plugins which can't be
 +
│ located,
 +
│ don't satisfy the version constraints, or are otherwise incompatible.
 +
 +
│ Terraform automatically discovers provider requirements from your
 +
│ configuration, including providers used in child modules. To see the
 +
│ requirements and constraints, run "terraform providers".
 +
 +
│ failed to instantiate provider "registry.terraform.io/hashicorp/aws" to
 +
│ obtain schema: unknown provider "registry.terraform.io/hashicorp/aws"
 +
 +
 +
 
 +
== Related commands ==
 +
* <code>[[terraform fmt]] -check</code>
 
* <code>[[terraform plan]]</code>
 
* <code>[[terraform plan]]</code>
 
* <code>[[terraform state]]</code>, <code>[[terraform state show]]</code>
 
* <code>[[terraform state]]</code>, <code>[[terraform state show]]</code>
 +
* <code>[[terraform fmt]]</code>
 
* [[Test mode]]
 
* [[Test mode]]
* <code>[[aws cloudformation validate-template]]</code>
 
* K8s [[datree]] [[plugin]]
 
* <code>[[terragrunt validate]]</code>
 
* <code>[[tflint]]</code>
 
* <code>[[.pre-commit-config.yaml]]</code>
 
  
 
== See also ==
 
== See also ==
* {{tf fmt}}
+
* {{terraform cmd}}
 +
* {{terraform}}
  
 
[[Category:Terraform]]
 
[[Category:Terraform]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: