Validate configuration

Check Terraform configuration for syntax and consistency errors

terraform validate

tool
terraform43 commands
tags
terraform

More terraform commands

  • terraform fmt -recursive

    Auto-format all .tf files recursively

  • terraform output -json

    Print all outputs as JSON; useful for pipeline scripting

  • terraform destroy -target=module.vpc.aws_vpc.main

    Destroy a single resource without touching everything else

  • terraform taint module.eks.aws_instance.node

    Mark resource for replacement on next apply

  • terraform state rm module.path.resource_type.name

    Forget a resource from state without destroying it in cloud

all 43 terraform commands