tfstate-lookup
« Back to VersTracker
Description:
Lookup resource attributes in tfstate
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: terraform devops infrastructure cli state-management
Install: brew install tfstate-lookup
About:
tfstate-lookup is a command-line utility that allows you to query Terraform state files directly. It can retrieve specific resource attributes using JMESPath expressions, enabling quick inspection of infrastructure state without needing Terraform CLI. The tool supports both local and remote state backends like S3.
Key Features:
  • Direct querying of Terraform state files
  • Supports JMESPath for complex queries
  • Works with local and remote (S3) state backends
  • Simple CLI for quick attribute lookups
Use Cases:
  • Debugging infrastructure by inspecting current resource attributes
  • Extracting resource IDs or ARNs for use in shell scripts
  • Validating Terraform outputs without running 'terraform output'
Alternatives:
  • terraform console – Requires full Terraform installation and is interactive, whereas tfstate-lookup is a standalone CLI tool for direct queries.
  • jq – Can parse state files but requires manual knowledge of the JSON structure; tfstate-lookup abstracts this with Terraform-aware queries.
Version History
Detected Version Rev Change Commit
Oct 9, 2025 11:03am 0 VERSION_BUMP 888d544f
Sep 26, 2025 11:02pm 0 NEW 78b489dc