terraform init -reconfigure

The init option that ignores any saved backend settings and sets the backend up from scratch, without copying existing state.

In more detail

Use it when the backend configuration changed and you do not want the old state carried over. If you do want the state moved, use -migrate-state instead.

Related terms

Taught in

References

Certification courses