Skip to content

Add exempt bucket to the AWS Terraform coverage report - #208

Merged
ale210 merged 1 commit into
masterfrom
exempt-coverage-bucket
Aug 31, 2026
Merged

Add exempt bucket to the AWS Terraform coverage report#208
ale210 merged 1 commit into
masterfrom
exempt-coverage-bucket

Conversation

@ale210

@ale210 ale210 commented Aug 31, 2026

Copy link
Copy Markdown
Member

Resources that are deliberately kept outside Terraform now carry managed-by = exempt, applied by hand rather than by a provider. The coverage report had no notion of that value, so it bucketed them as unmanaged and additionally listed them under "Tagged with an unrecognised managed-by value".

This adds exempt as a fourth bucket, excluded from the coverage ratio for the same reason untaggable is: counting a resource Terraform is never meant to touch as unmanaged makes it a permanent false positive.

Also documents the difference between the two exclusions, which is easy to miss — untaggable is a fact about AWS, while exempt is an assertion someone made by hand and nothing here verifies. That is called out in the README and added to the script's Blind spots output.

Verified against a live sweep of 035866691871:

terraform-incubator             180
terraform-devops-security        23
unmanaged                       119
exempt                            8

  203 of 322 in-scope resources carry a managed-by tag (63%).
  27 further resources cannot be tagged at all and are excluded from that ratio.
  8 are tagged managed-by=exempt and are excluded from it as well.

All 8 land in the new bucket and the "unrecognised managed-by value" section no longer fires.

The tag is being applied under hackforla/devops-security#176.

Resources deliberately kept outside Terraform now carry managed-by=exempt.
Count them separately rather than as unmanaged, and exclude them from the
coverage ratio the same way untaggable resources are excluded.
@ale210
ale210 merged commit 07c4a0d into master Aug 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant