Difference between revisions of "Terraform validate"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
== Related commands == | == Related commands == | ||
* <code>[[terraform init -backend=false]]</code> | * <code>[[terraform init -backend=false]]</code> | ||
+ | * <code>[[terraform fmt]]</code> | ||
* <code>[[terraform fmt -check]]</code> | * <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> | ||
− | |||
* [[Test mode]] | * [[Test mode]] | ||
* <code>[[aws cloudformation validate-template]]</code> | * <code>[[aws cloudformation validate-template]]</code> |
Revision as of 12:32, 20 December 2023
terraform validate
terraform validate
terraform validate && terraform plan
terraform validate
requires an initialized working directory with any referenced plugins and modules installed. Execute: terraform init -backend=false
Example
terraform validate Success! The configuration is valid.
Examples with errors
Related commands
terraform init -backend=false
terraform fmt
terraform fmt -check
terraform plan
terraform state
,terraform state show
- Test mode
aws cloudformation validate-template
- K8s datree
terragrunt validate
See also
terraform fmt [ -diff | -check | validate | --help ]
Advertising: