Validate a Config-based gap list before you mail it
(Updated: ) - 1 minDrafted with AI assistance from notes I took during real work.
Validate a Config-based tagging gap list against live APIs before you send it. Owners judge the whole campaign by the first wrong line they hit.
After the first round of gap mails (40 accounts, 12,500 rows), owners replied that many reported snapshots no longer existed, and one account’s list included a firewall policy and a peering connection that cost nothing. The bulk command feeds the attachment ARNs straight into the tagging API, so any bad ARN fails loudly.
A read-only live scan of five accounts, matched ARN by ARN, found four traps. Config writes ARNs you can’t tag: flow logs as flow-log/ and EIP allocations as eip-allocation/, where the real forms are vpc-flow-log/ and elastic-ip/. Rewrite them before the attachment. Config keeps some deleted automated RDS snapshots; they live at most 35 days, so anything older is a ghost and can be skipped. The rest rotate daily anyway, so the real fix is to enable snapshot tag copying on the database. The EBS snapshot list can be about two days old (180 listed, 74 still existing after the owner’s cleanup), so tell owners a failed line for a deleted snapshot is fine. And about 420 VPC flow logs were created centrally into the org log buckets, not by owners; Config exposes the log destination, so filter those out in the query.
A one-hour diff on five accounts catches all of this before 40 teams turn it into support tickets.
Support This Work
If this saved you a wave of support tickets, consider a small contribution.
Most readers scroll past. Less than 3% of readers contribute to keeping independent technical content free and accessible.