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.
| Rule | Commands | Category | Meaning |
|---|---|---|---|
match/identity | scan, whois | managed | A state resource has the same resource identity (account, region and the identity attributes). |
match/arn | scan, whois | managed | A state resource has the same ARN. |
match/id | scan, whois | managed | A state resource has the same normalized ID. |
match/rule-tuple | scan | managed | An aws_security_group_rule has the same protocol, ports, source and direction. |
match/inline-rule | scan | managed | An inline ingress or egress block of an aws_security_group has the same tuple. |
match/parent-in-state | scan | derived | No state has the resource, but a state manages its parent, which creates it. |
match/double-managed | scan, whois | double-managed | Instances in more than one state match the resource. |
match/no-type-mapping | scan, whois | undetermined | The type has no mapping to a Terraform type, so tfcensus can't tell whether a state manages it (type coverage). |
match/ambiguous | whois | undetermined | Instances of different Terraform types have the ARN or ID. Narrow the query with --type. |
match/not-in-state | scan | unmanaged | No state manages the resource and no ownership rule matched it. Findings carry rules/no-match once the rules ran. |
rules/no-match | scan | unmanaged | No built-in pack and no user rule matched the unmanaged resource. |
pack/<pack>/<name> | scan, whois | the pack's | A rule of a built-in pack matched (rule packs). |
guard/<name> | scan | unmanaged | A guard kept a user rule from hiding the resource (guards). |
user/<name> | scan, whois, drift | the rule's | Your rule in rules (scan, whois) or drift.noise (drift) matched. |
inherit/<category> | scan | the parent's | The resource took its parent's category, such as an IAM role policy of an AWS-managed role. scan --explain shows the parent chain. |
source/cloudformation | scan | other-iac | A CloudFormation stack lists the resource and no state manages it. |
whois/not-found | whois --live | unmanaged | A state has the ARN or ID, but the live inventory listed the type and the resource isn't there. |
preset/<name> | drift | hidden | A drift noise preset hid the change. |
Backend audit findings carry the check ID as their rule, such as S3-VER (audit checks).