dnogu/Tofu Init
A GitHub Action to run tofu init with all supported options.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Sep 4, 2025
- License
- MIT
Pinned Snippet
uses: dnogu/tofu-init@f2263a812ecaad67973e78463893d5e198fcec2b # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| working-directory | The directory in which to run tofu init. | no | . |
| chdir | Switch working directory before executing tofu init (--chdir). | no | "" |
| input | Ask for input if necessary (--input=true|false). | no | true |
| lock | Enable or disable state locking (--lock=true|false). | no | true |
| lock-timeout | Override the time to wait for a state lock (--lock-timeout=<duration>). | no | 0s |
| no-color | Disable color codes in output (--no-color). | no | false |
| upgrade | Upgrade modules and plugins (--upgrade). | no | false |
| json | Produce output in JSON format (--json). | no | false |
| var | Set input variable(s) (--var NAME=VALUE, comma separated or repeatable). | no | "" |
| var-file | Set input variables from file(s) (--var-file=FILENAME, comma separated or repeatable). | no | "" |
| from-module | Copy a source module before initialization (--from-module=MODULE-SOURCE). | no | "" |
| backend | Enable or disable backend initialization (--backend=true|false). | no | true |
| backend-config | Backend config file or key=value pairs (--backend-config=..., comma separated or repeatable). | no | "" |
| reconfigure | Reconfigure the backend (--reconfigure). | no | false |
| migrate-state | Migrate state to new backend (--migrate-state). | no | false |
| force-copy | Force copy state from previous backend (--force-copy). | no | false |
| get | Enable or disable child module installation (--get=true|false). | no | true |
| plugin-dir | Force plugin installation from a specific directory (--plugin-dir=PATH). | no | "" |
| lockfile | Set dependency lockfile mode (--lockfile=readonly|... ). | no | "" |
Outputs
| name | description |
|---|---|
| init-output | The output from tofu init. |