@webframp/terraform
v2026.04.22.2
Read Terraform and OpenTofu state via CLI and marshal into swamp data.
Shells out to terraform show -json (or tofu show -json) to read state
from any configured backend, then writes swamp resources keyed by Terraform
resource address for CEL consumption in workflows and reports.
Supports workspace selection and binary switching between Terraform and OpenTofu via global arguments.
Quick Start
swamp extension pull @webframp/terraform
swamp model create @webframp/terraform tf-infra \
--global-arg workDir=/path/to/terraform/repoRepository
https://github.com/webframp/swamp-extensions
Labels
Contents
Quality score
How well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @webframp/terraformGlobal Arguments
| Argument | Type | Description |
|---|---|---|
| workDir | string | Path to the initialized Terraform/OpenTofu working directory |
| workspace | string | Terraform workspace name |
| binary | string | CLI binary to use: 'terraform' or 'tofu' |
Resources
Read Terraform and OpenTofu state via CLI and marshal into swamp data. Shells out to `terraform show -json` (or `tofu show -json`) to read state from any configured backend, then writes swamp resources keyed by Terraform resource address for CEL consumption in workflows and reports. Supports workspace selection and binary switching between Terraform and OpenTofu via global arguments. ## Quick Start ```bash swamp extension pull @webframp/terraform swamp model create @webframp/terraform tf-infra \ --global-arg workDir=/path/to/terraform/repo ```
Read Terraform and OpenTofu state via CLI and marshal into swamp data. Shells out to `terraform show -json` (or `tofu show -json`) to read state from any configured backend, then writes swamp resources keyed by Terraform resource address for CEL consumption in workflows and reports. Supports workspace selection and binary switching between Terraform and OpenTofu via global arguments. ## Quick Start ```bash swamp extension pull @webframp/terraform swamp model create @webframp/terraform tf-infra \ --global-arg workDir=/path/to/terraform/repo ```