List state resources

Filter state resources by pattern

terraform state list | grep <pattern>

tool
terraform43 commands
tags
terraform

More terraform commands

  • terraform fmt -recursive

    Recursively format all .tf files in subdirectories

  • terraform validate

    Check configuration syntax without accessing remote state

  • 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

all 43 terraform commands