How One Ctrl+C Turned Prod Into A Read-Only Museum

Solvediacstateterraform99 replies · 1.3K views · started
  1. ps page 5 lets gooo

    27 0 helpful
  2. After unlocking, run terraform plan first. If an interrupted apply had partly completed, the plan will show resources that exist in the cloud but not in state (or vice versa). Fix that with terraform import or by re-running the apply.

    1 3 helpful
  3. been there man came here to say exactly this good luck man!

    1 0 helpful
  4. @wes.zhang36 nah thats not it, iac has nothing to do with it but hey ymmv

    0 14 helpful
  5. been there man following, having the same problem

    18 0 helpful
  6. hmmmm ok i swear iac is cursed... following, having the same problem im about to throw this thing out the window lol

    rage

    4 2 helpful
  7. ok so before unlocikng, make sure the holder is realy gone. The error shows Who, Operation and Created. Check that CI job and that colleagues machine. If no process is running, its safe to run:

    terraform force-unlock <LOCK_ID>
    

    Force-unlock only removes the lock entry, it does not change state contents.

    10 6 helpful
  8. hmmmm quick q which version are u on??

    5 1 helpful
  9. pro tip: write down what u change. i didnt and had to redo terraform from scratch fingers crossed 🤞

    thumbsup

    0 8 helpful
  10. also lol i come back to this thread every week just for the drama

    0 5 helpful
  11. is iac even worth bothering with or should i just leave it

    0 14 helpful
  12. 😂😂😂

    0 4 helpful

Reply to this topic

Sign in or create an account to reply.