Skip to content

Matching and rule IDs ​

Every finding carries a rule and a reason. The rule says which step decided the category. Matching tries the keys in order: identity, then ARN, then normalized ID, and the first that finds a state resource decides. Unmapped types are undetermined, never managed. <name> stands for a rule or preset name.

RuleCommandsCategoryMeaning
match/identityscan, whoismanagedA state resource has the same resource identity (account, region and the identity attributes).
match/arnscan, whoismanagedA state resource has the same ARN.
match/idscan, whoismanagedA state resource has the same normalized ID.
match/rule-tuplescanmanagedAn aws_security_group_rule has the same protocol, ports, source and direction.
match/inline-rulescanmanagedAn inline ingress or egress block of an aws_security_group has the same tuple.
match/parent-in-statescanderivedNo state has the resource, but a state manages its parent, which creates it.
match/double-managedscan, whoisdouble-managedInstances in more than one state match the resource.
match/no-type-mappingscan, whoisundeterminedThe type has no mapping to a Terraform type, so tfcensus can't tell whether a state manages it (type coverage).
match/ambiguouswhoisundeterminedInstances of different Terraform types have the ARN or ID. Narrow the query with --type.
match/not-in-statescanunmanagedNo state manages the resource and no ownership rule matched it. Findings carry rules/no-match once the rules ran.
rules/no-matchscanunmanagedNo built-in pack and no user rule matched the unmanaged resource.
pack/<pack>/<name>scan, whoisthe pack'sA rule of a built-in pack matched (rule packs).
guard/<name>scanunmanagedA guard kept a user rule from hiding the resource (guards).
user/<name>scan, whois, driftthe rule'sYour rule in rules (scan, whois) or drift.noise (drift) matched.
inherit/<category>scanthe parent'sThe resource took its parent's category, such as an IAM role policy of an AWS-managed role. scan --explain shows the parent chain.
source/cloudformationscanother-iacA CloudFormation stack lists the resource and no state manages it.
whois/not-foundwhois --liveunmanagedA state has the ARN or ID, but the live inventory listed the type and the resource isn't there.
preset/<name>drifthiddenA drift noise preset hid the change.

Backend audit findings carry the check ID as their rule, such as S3-VER (audit checks).