Validate configuration
Check Terraform configuration for syntax and consistency errors
terraform validate
More terraform commands
-
terraform fmt -recursiveAuto-format all .tf files recursively
-
terraform output -jsonPrint all outputs as JSON; useful for pipeline scripting
-
terraform destroy -target=module.vpc.aws_vpc.mainDestroy a single resource without touching everything else
-
terraform taint module.eks.aws_instance.nodeMark resource for replacement on next apply
-
terraform state rm module.path.resource_type.nameForget a resource from state without destroying it in cloud