Difference between revisions of "Terraform validate"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
<code>[[terraform]] validate</code>
 
<code>[[terraform]] validate</code>
 
* https://www.terraform.io/docs/cli/commands/validate.html
 
* https://www.terraform.io/docs/cli/commands/validate.html
 +
 +
terraform validate
 +
terraform validate && terraform plan
  
 
== Example ==
 
== Example ==

Revision as of 14:03, 8 September 2021

terraform validate

terraform validate
terraform validate && terraform plan

Example

terraform validate
Success! The configuration is valid.

Error: Could not load plugin

 terraform validate
╷
│ Error: Could not load plugin
│
│
│ 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

See also

Advertising: