Validate configuration

Check configuration syntax without accessing remote state

terraform validate

tool
terraform43 commands
tags
terraformdebug

More terraform commands

  • terraform plan -var-file=prod.tfvars -out=prod.tfplan

    Generate plan with prod variables, save to file

  • terraform apply prod.tfplan

    Apply exactly the plan generated earlier (no re-prompts)

  • terraform state show 'aws_instance.web[0]'

    Display all attributes of a specific resource in state

  • terraform state mv 'aws_instance.web' 'module.app.aws_instance.web'

    Rename or move a resource without destroying it

  • terraform import 'aws_s3_bucket.mybucket' my-existing-bucket

    Bring an existing resource under Terraform management

all 43 terraform commands