Skip to content
Antenore Gatta

Antenore Gatta

A proud and busy Hacker, Father and Kyndryl.

A central tagging sweep doesn't last

- 1 min

A central tagging sweep makes the numbers look good for two weeks and teaches nobody anything. A mandatory tag only holds if the thing that creates resources carries it.

We swept about 100 resource types centrally with a Step Functions state machine, and it worked, and it did not last. AWS confirmed there is no account-level or payer-level tagging for the partner key. A 90-day org CloudTrail analysis found 1.2 million create events with only about 2% carrying the key. Every new resource, and every redeploy that rewrote tags, reopened the gap.

So we changed the principle: don’t write tags into other teams’ resources. Owners get an announcement, a weekly gap list with a bulk command, a deadline, and a non-compliant mail after it. And we tell owners exactly where inheritance breaks, only when their list has that resource type.

Terraform default_tags does not reach volumes created by aws_instance: use volume_tags or tag the block devices. CloudFormation has PropagateTagsToVolumeOnCreation, and launch templates need a TagSpecification for both instance and volume. RDS and DocumentDB need CopyTagsToSnapshot, or automated snapshots are born untagged every day. FSx has “Copy tags to backups” off by default. AWS Backup, DLM, and disaster recovery need the tag in the plan, policy, or replication settings. And stack-level tags in CloudFormation propagate to every taggable resource; the console needs Use existing template to add them.

Fix the creator first, then bulk-tag what exists. The breakpoints are always the derived resources nobody declares: volumes, snapshots, backups, log groups.

Drafted with AI assistance from notes I took during real work.

Antenore Gatta

Antenore Gatta

A proud and busy Hacker, Father and Kyndryl

Support This Work

If this saved you from a sweep that doesn't last, consider a small contribution.

Most readers scroll past. Less than 3% of readers contribute to keeping independent technical content free and accessible.

Post comment

Markdown is allowed, HTML is not. All comments are moderated.