dnogu/Tofu Init

A GitHub Action to run tofu init with all supported options.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Sep 4, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: dnogu/tofu-init@f2263a812ecaad67973e78463893d5e198fcec2b # v1

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

namedescriptionrequireddefault
working-directoryThe directory in which to run tofu init.no.
chdirSwitch working directory before executing tofu init (--chdir).no""
inputAsk for input if necessary (--input=true|false).notrue
lockEnable or disable state locking (--lock=true|false).notrue
lock-timeoutOverride the time to wait for a state lock (--lock-timeout=<duration>).no0s
no-colorDisable color codes in output (--no-color).nofalse
upgradeUpgrade modules and plugins (--upgrade).nofalse
jsonProduce output in JSON format (--json).nofalse
varSet input variable(s) (--var NAME=VALUE, comma separated or repeatable).no""
var-fileSet input variables from file(s) (--var-file=FILENAME, comma separated or repeatable).no""
from-moduleCopy a source module before initialization (--from-module=MODULE-SOURCE).no""
backendEnable or disable backend initialization (--backend=true|false).notrue
backend-configBackend config file or key=value pairs (--backend-config=..., comma separated or repeatable).no""
reconfigureReconfigure the backend (--reconfigure).nofalse
migrate-stateMigrate state to new backend (--migrate-state).nofalse
force-copyForce copy state from previous backend (--force-copy).nofalse
getEnable or disable child module installation (--get=true|false).notrue
plugin-dirForce plugin installation from a specific directory (--plugin-dir=PATH).no""
lockfileSet dependency lockfile mode (--lockfile=readonly|... ).no""
namedescription
init-outputThe output from tofu init.