terraform validate validates that your infrastructure matches the Terraform state file.
terraform validate validates that your infrastructure matches the Terraform state file.
The terraform validate command checks whether the configuration files in a directory are syntactically correct and consistent. It does not interact with the Terraform state file or verify that the actual infrastructure matches the state. Its primary purpose is to ensure that the provided configuration files are error-free and logically coherent.
Validate only checks the syntax http://man.hubwiz.com/docset/Terraform.docset/Contents/Resources/Documents/docs/commands/validate.html
The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc. Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including correctness of attribute names and value types. Source: https://www.terraform.io/cli/commands/validate
False B Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including correctness of attribute names and value types. It is safe to run this command automatically, for example as a post-save check in a text editor or as a test step for a re-usable module in a CI system https://developer.hashicorp.com/terraform/cli/v1.1.x/commands/validate
false B Validate only checks the syntax
B is the correct answer. Terraform plan validates desired state with current state configuration.
B because Terraform validate only checks for syntax error or so
It's more of a syntax thing.
False, terraform validate has nothing to do with the state file.
False B
False , B is correct
B is correct