Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Accidentally Deleted Our Production S3 Bucket — Here's What Happened in the Next 4 Hours

I Accidentally Deleted Our Production S3 Bucket — Here's What Happened in the Next 4 Hours The command ran in under a second. The recovery took 4 hours. Here's the full story, what we lost, what we saved, and what we now have in place so it can never happen again. There's a moment every cloud engineer dreads. The cursor blinks. The command runs. And then a silence that feels different from normal…

In the span of four hours, a cloud engineer accidentally deleted a production S3 bucket, causing significant data loss. The engineer had mistakenly run the aws s3 rb command in the wrong terminal window, believing they were deleting a staging bucket when they actually deleted the production bucket containing three years of user-uploaded files. This led to the immediate loss of user profile pictures, document uploads, exported reports, and some application assets.

Fortunately, the engineer had Versioning enabled on the production bucket, which prevented the deletion of individual objects. However, the deletion of the bucket itself removed all versions and objects. The engineer then discovered Cross-Region Replication (CRR) had been set up eight months earlier as a compliance requirement, but it had never been tested. CRR continuously replicated objects from the source bucket to a destination bucket in another region, and the destination bucket still contained all 47,832 objects.

The recovery process involved creating a new source bucket, copying the objects from the replica bucket to the new source bucket, updating bucket policies, CORS configuration, and lifecycle rules, and re-enabling CRR. This process took approximately 2 hours and 47 minutes, restoring all the lost data. While some bucket policy and lifecycle rule permissions were missing, the engineer was able to manually recreate them.

The incident highlighted the importance of versioning, cross-region replication, and treating infrastructure like code, by version-controlling policies, lifecycle rules, and CORS configurations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why I Stopped Using JSON Tool-Calling for My Coding Agent

A few months ago I needed an agentic coding assistant inside a internal CI repair tool I was building. The obvious move was to embed something that already exists — Claude Code, or Google's…

  • Author developed CodePilot, an open-source Python runtime for coding agents
  • CodePilot eliminates need for JSON tool calls and markdown
  • CodePilot includes VT100 terminal emulator and multiple provider support

Teaching a local coding agent from its own mistakes: DPO on a 30B model

The WUIC Assistant is our agentic VS Code plugin: it scaffolds Angular components, dashboards, reports, workflows, and metadata patches for apps built on the WUIC framework.

  • WUIC Assistant uses 30B-parameter model qwen3-coder:30b
  • Angular framework scaffolds components, reports, workflows
  • Curriculum flaw fails to measure model's generalization and error correction

Free AWS Certification for Students: The Complete Step-by-Step Guide

👋 Hey there! I'm Sarvar , a Cloud Architect who spends most days building on AWS and Azure, and the rest writing about it. Last year I wrote a guide on getting a free AWS certification voucher.

  • AWS launches Student Rewards on AWS Builder Center
  • Students receive 12 months of premium training, $30 credits, $100 exam voucher
  • Verification requires school records, email, enrollment documents

More from Monday 31 August →