DEV Community

Cover image for ๐Ÿ” AWS CloudTrail Now Logs Individual S3 Object Deletes in Bulk Operations
Latchu@DevOps
Latchu@DevOps

Posted on

๐Ÿ” AWS CloudTrail Now Logs Individual S3 Object Deletes in Bulk Operations

Amazon just made your S3 audit trail smarter and more secure.

As of June 11, 2025, AWS CloudTrail now provides granular visibility into bulk S3 object deletions made via the DeleteObjects API โ€” helping you better monitor, secure, and comply with your S3 usage.


๐Ÿง  Whatโ€™s the Problem?

When using the DeleteObjects API to delete multiple files (like when deleting folders from the S3 console), CloudTrail used to log only a single event:

  • Who called the API
  • Which bucket was affected

Butโ€ฆ

โŒ No visibility into what objects were deleted.
โŒ No way to audit deletions on a per-file basis.


โœ… Whatโ€™s New?

CloudTrail now logs:

  • โœ… The main DeleteObjects API call (as before)
  • ๐Ÿ†• Individual DeleteObject events for each object in the request

This gives you object-level visibility, even in bulk deletes!


๐Ÿ” Why This Matters

Problem Solved Benefit
No audit trail per object โœ… See which files were deleted
Limited compliance reporting โœ… Helps meet security & compliance standards
Blind spots in bulk deletions โœ… Clear, per-object logs for investigation

๐Ÿงช Example Use Case

You delete 500 files from an S3 bucket using the AWS Console (which internally calls DeleteObjects).

Now, CloudTrail logs:

  • 1 event for the DeleteObjects call
  • 500 individual DeleteObject data events (1 per object)

Perfect for:

  • ๐Ÿ“Š Compliance audits
  • ๐Ÿ”Ž Security investigations
  • โš ๏ธ Accidental deletion tracking

๐ŸŽฏ Pro Tip: Use Event Selectors Wisely

Donโ€™t want to log every delete across every bucket?

Use advanced event selectors in CloudTrail to:

  • Target specific buckets
  • Filter by API name
  • Limit unnecessary logs and reduce cost

๐Ÿงพ TL;DR

  • CloudTrail now logs per-object deletes inside bulk DeleteObjects requests
  • Better security, visibility, and compliance
  • Works with the S3 console and any bulk delete API call

Top comments (0)