Skip to content

tfcensus report audit ​

audit lists the findings in a file from tfcensus audit --format json, highest severity first. It is what the audit_findings tool of tfcensus mcp returns.

Usage ​

sh
tfcensus report audit [flags]

Flags ​

FlagDescriptionTypeDefaultValuesConfig keyNotes
--accountAWS account IDstringaccounts.include
--fromaudit JSON from tfcensus audit --format jsonstring
--include-suppressedlist suppressed findings toobool
--rulecheck ID glob, such as S3-*string
--severitylowest severity: info, low, medium or highstringinfo: worth knowing, no risk
low: small risk
medium: fix soon
high: fix now

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 ​

CodeMeaning
0The command finished. With --fail-on, nothing matched.
1The command failed: a read, a write, a child process or a check failed.
2Wrong usage: an unknown command or flag, a bad value or argument, an invalid config file, or a prompt with no terminal.
130Interrupted by Ctrl-C (SIGINT) or a cancelled context.

All codes are listed on the exit codes page.

Examples ​

sh
tfcensus report audit --from audit.json --severity medium