PUZZLEHARD

Terraform State vs Reality

Someone renamed an S3 bucket and tagged an EC2 in the console. Now terraform apply fails. Reconcile state with reality without destroying the infrastructure.

90 minutes
terraform
Share this Puzzle

Puzzle Overview

The previous engineer used the AWS Console to "just quickly fix something" while Terraform was mid-rollout. Now `terraform plan` wants to destroy and recreate resources that are actively in use, and `terraform apply` errors on conflicts.

You must bring the Terraform state and the real AWS infrastructure back into alignment — without deleting production resources — so that `terraform plan` reports "No changes."

Skills tested: `terraform state` subcommands (rm, mv, import), reading plan output, understanding the difference between code drift and state drift, tag reconciliation.

Technologies Covered

terraformawsstatedriftpuzzle

Choose your plan

Simple, Transparent Pricing

Unlock full access to TeKanAid courses, labs, and bootcamps

Buying for a team? Private corporate training is available for up to 15 learners.View team training
MonthlyQuarterly
Try Premium free for 7 days →

Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).

Pro

All courses, with lab scripts to run on your own machine

$59/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Full access to all courses
  • Lab scripts to download and run on your own machine (hosted labs not included)
  • Progress tracking
  • Certificate of completion
  • Community access
  • Bootcamp participation
  • New content access
Recommended

Premium

Full access, including unlimited hosted labs

$99/month

Renews automatically. Cancel anytime.

Final price verified at checkout.

  • Everything in Pro
  • Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
  • Lab AI Assistant
  • Accelerator bootcamps with live office hours
  • Priority support

Just exploring? Start free, no account needed

Three free ways to start. All bridge into the paid Premium catalog when you're ready.

Not ready to commit? The crash course is email-only. No academy account required.

Ready to Crack It?

Jump into the broken system, diagnose the fault, and fix it.

Get Access Now