Monday 8am and staging has a state lock from Friday night

iacstateterraform98 replies · 1.2K views · started
  1. yeahhh after unlocking, run terraform plan first. If an interrupted apply had partly completed, teh plan will show resources that exist in teh cloud but not in state (or vice versa). Fix that with terraform import or by re-running the apply. worked for me anyway 🤷

    3 2 helpful
  2. pro tip: write down what u change... i didnt and had to redo dynamodb from scratch, told my boss it would take 10 minutes, its been all weekend lmk how it goes

    2 0 helpful
  3. oh ive been there lol never Ctrl+C an apply twice... the first interrupt lets Terraform finish in-flight operations and release the lock; the second one kills it immediately and that's what leaves stale locks and half-written resources. worked for me anyway 🤷

    thinking

    2 0 helpful
  4. lol same thing happened to me following, having the same problem. try turning off teh power plan first, fixed it for me

    2 2 helpful
  5. reading this at 2am instead of sleeping, no regrets im about to throw this thing out the window lol

    2 0 helpful
  6. any update on this?, lol this thread is gold ?

    1 0 helpful
  7. help!! spent two days on locking and im still not done. dumb question but how do i even check the update what am i doing wrong??

    6 0 helpful
  8. ok but is dynamodb even worth bothering with or should i just leave it ??

    2 1 helpful
  9. unrelated but anyone elses coffee machine also judging them today

    3 2 helpful
  10. ^ this

    3 1 helpful
  11. wait which version are u on? ?

    2 0 helpful

Reply to this topic

Sign in or create an account to reply.