Sign inSign up free

1126. One Typo From Deleting Production Data

medium 20 XP ~10 minHands-on lab

~/infra/courier-api manages the DynamoDB table courier-api-customers (production data) and the S3 bucket courier-api-scratch (temporary files). Last week someone ran tofu destroy in the wrong folder; it only survived because they hit Ctrl-C.

Task

  • Any plan that would destroy or replace courier-api-customers fails with an error, including tofu destroy and a change that forces replacement.
  • The scratch bucket can still be destroyed by OpenTofu as usual.
  • tofu plan reports no changes, and both resources still exist.

This machine has an AWS-style account (an emulator: nothing is billed). tofu and the aws CLI are both signed in as the account's administrator.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Part of AWS Hands-On. Next step: Removing One Subnet Would Replace Another

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.