1. Help Center
  2. Troubleshooting

"Backend configuration changed"

Terraform Init step fails with "Backend Configuration Changed"

State changes should be avoided when possible. However, sometimes, you just want to modify your backend. In this case, Terraform will complain that the backend configuration has changed. 

This means you will need to migrate your state.

In order, to migrate your existing state, use env0's Ad hoc Tasks to run:

terraform init -migrate-state -force-copy

If you try this in env0 and you still get this "Error: Error asking for state migration action: Input is disabled"
Try adding the task again with this instead: 

echo "yes" | TF_INPUT="true" terraform init -migrate-state