Skip to main content

Handle errored.tfstate when spacelift is manging state

If for any reason state cannot be persisted to the spacelift backend, tofu tooling will create an errored.tfstate.

If spacelift detects an errored.tfstate on disk, this should be persisted in some fashion (potentially in s3, but if it couldnt upload to s3 then this is another issue so maybe save it to a context?)

Workaround
Status: 🗑️ Archived1 comment

Log in to comment and vote

Comments1

  • Black Breeze

    •

    May 28, 2025

    Hey Joey! Thanks for raising this. Quick question to understand the problem better: What happens today when you encounter this situation? Does the run fail completely? Are you able to recover the state somehow? Also, what typically causes the state upload to fail in your experience?