# Install tfstate-lookup with Homebrew

Lookup resource attributes in tfstate. Version 1.12.1 via Homebrew; verified 2026-06-14.

## Install

```sh
sudo av install brew:tfstate-lookup
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install tfstate-lookup
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:tfstate-lookup
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/tfstate-lookup>
- **Version:** 1.12.1
- **Source summary:** Lookup resource attributes in tfstate
- **Homepage:** <https://github.com/fujiwara/tfstate-lookup>
- **Repository:** <https://github.com/fujiwara/tfstate-lookup>
- **Upstream docs:** <https://github.com/fujiwara/tfstate-lookup#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/fujiwara/tfstate-lookup/archive/refs/tags/v1.12.1.tar.gz>
- **Last updated:** 2026-06-14T15:13:52+02:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- tfstate-lookup (cli)
- tfstate-lookup (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.12.1
- Package-manager updated: 2026-06-14
- Local data: ok
- Upstream repository: https://github.com/fujiwara/tfstate-lookup
- Upstream latest detected: v1.12.1 (current)
## Project history and usage

tfstate-lookup is a command-line and Go-library tool for querying Terraform state. Its README describes looking up resource attributes from local or remote tfstate files.

### Project history

The project centers on state inspection rather than configuration editing. The README documents lookup by resource address, dumping all resources, interactive selection, and integration with the `jid` JSON incremental digger.

### Adoption history

The README documents installation through a Homebrew tap and binary releases. The input metadata records a Homebrew package for the tool.

### How it is used

Typical use is to query a state file with commands like `tfstate-lookup aws_vpc.main.id` or to point `-s` at a local file or URL. The README lists supported state URL schemes including local file, HTTP(S), S3, GCS, AzureRM, and Terraform Cloud or Enterprise remote state.

For package users, the value is a quick shell-native way to inspect state outputs and resource attributes without writing jq filters against the whole state JSON.

### Why package nerds care

tfstate-lookup belongs to the practical Terraform toolbox: small enough for Homebrew, useful in scripts, and focused on the awkward gap between Terraform state internals and day-to-day shell queries.

### Timeline

- 2025-04-19: The GitHub releases page lists tfstate-lookup v1.6.0.
- 2026-05-17: The GitHub releases page lists tfstate-lookup v1.12.1.
- 2026: The input metadata records tfstate-lookup as a Homebrew package.

### Related projects

- The README links jid for interactive JSON digging and documents Terraform Cloud, S3, GCS, and AzureRM state backends.

### Sources

- <https://github.com/fujiwara/tfstate-lookup README>
- <https://github.com/fujiwara/tfstate-lookup/releases>
- source_facts.package-manager


## Security Notes

No matching local secret-handling manifest was found for tfstate-lookup. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tfstate-lookup
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [iam-policy-json-to-terraform](https://www.automicvault.com/pkg/brew/iam-policy-json-to-terraform/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfschema](https://www.automicvault.com/pkg/brew/tfschema/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfsort](https://www.automicvault.com/pkg/brew/tfsort/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [tfupdate](https://www.automicvault.com/pkg/brew/tfupdate/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [k2tf](https://www.automicvault.com/pkg/brew/k2tf/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-inventory](https://www.automicvault.com/pkg/brew/terraform-inventory/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform-module-versions](https://www.automicvault.com/pkg/brew/terraform-module-versions/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.
- [terraform_landscape](https://www.automicvault.com/pkg/brew/terraform-landscape/) - Shares av.db curated category or tags: cli, developer-tools, infrastructure-as-code, terraform.

## Combined YAML source

View the package source record on GitHub. [combined/tfstate-lookup.yml](https://github.com/automic-vault/db/blob/main/combined/tfstate-lookup.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
