dflook/tofu-output

Retrieve the root-level outputs from an OpenTofu configuration.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
pathThe path to the OpenTofu root module directory.no.
workspaceOpenTofu workspace to get outputs fromnodefault
variablesVariables to set when initializing OpenTofu. This should be valid OpenTofu syntax - like a [variable definition file](https://opentofu.org/docs/language/values/variables/#variable-definitions-tfvars-files). Variables set here override any given in `var_file`s. no
var_fileList of tfvars files to use, one per line. Paths should be relative to the GitHub Actions workspace no
backend_configList of OpenTofu backend config values, one per line.no""
backend_config_fileList of OpenTofu 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 OpenTofu config: ```hcl output "service_hostname" { value = "example.com" } ``` The file pointed to by this output will contain: ```json { "service_hostname": "example.com" } ``` OpenTofu list, set and tuple types are cast to a JSON array, map and object types are cast to a JSON object.