dflook/terraform-output

Retrieve the root-level outputs from a Terraform configuration.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 13, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: dflook/terraform-output@becc8dd3d8be55485cd9f8c716f470c3c99824da # v2.2.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
pathThe path to the Terraform root module directory.no.
workspaceTerraform workspace to get outputs fromnodefault
backend_configList of Terraform backend config values, one per line.no""
backend_config_fileList of Terraform backend config files to use, one per line. Paths should be relative to the GitHub Actions workspace no""
namedescription
json_output_pathThis is the path to all the root module outputs in a JSON file. The path is relative to the Actions workspace. For example, with the Terraform config: ```hcl output "service_hostname" { value = "example.com" } ``` The file pointed to by this output will contain: ```json { "service_hostname": "example.com" } ``` Terraform list, set and tuple types are cast to a JSON array, map and object types are cast to a JSON object.