Developer adds severity grading and CloudTrail attribution to AWS Terraform drift tool
A developer building a Terraform drift detection tool found that raw diff reports listing dozens of AWS changes offered no way to distinguish critical security issues from minor configuration tweaks. To address this, they added a pure-logic classification layer that grades each field-level change as CRITICAL, HIGH, or LOW based on transitions such as a security group opening to 0.0.0.0/0 or encryption being disabled. The tool assigns each drifted resource the severity of its worst individual field change, allowing engineers to prioritize triage without making additional AWS API calls. To identify who made a change, the tool queries AWS CloudTrail using the resource ID, filtering out read-only events like Describe and List calls to surface only mutating actions. CloudTrail lookups are performed lazily and fail gracefully, ensuring that missing permissions or throttling never disrupts the main drift report.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in