tfcensus move status
status reads the history object next to each involved unit's state and shows each block as applied, pending or partial (applied in some units only).
Usage
sh
tfcensus move status <migration-file> [flags]Arguments
| Argument | Required | Repeatable |
|---|---|---|
migration-file | yes | no |
Flags
| Flag | Description | Type | Default | Values | Config key | Notes |
|---|---|---|---|---|---|---|
--block | run only these blocks (default: all, in file order) | list, repeatable | ||||
--repo | repository root that the file's unit paths are relative to | string | . | |||
--var | set var.NAME in the migration file, as NAME=VALUE | string, repeatable |
The global flags work with every command.
Output formats
--format accepts tty, plain, json. Without it, the format is tty when stdout is a terminal and plain otherwise. Formats are described on the global flags page.
Exit codes
| Code | Meaning |
|---|---|
| 0 | The command finished. With --fail-on, nothing matched. |
| 1 | The command failed: a read, a write, a child process or a check failed. |
| 2 | Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal. |
| 3 | A --fail-on gate matched. The report is still written. |
| 4 | Credentials were missing or rejected for every source the command needed. |
| 130 | Interrupted by Ctrl-C (SIGINT) or a cancelled context. |
All codes are listed on the exit codes page.
Examples
sh
tfcensus move status migrations/split_network.hcl
tfcensus move status migrations/split_network.hcl --block split_network --var env=prod