C1W4 - Lab: "Error: Inconsistent dependency lock file" when running terraform plan

Following through the W4 Lab for the Batch pipeline, I’m getting the following message when attempting to run the terraform plan
“Error: Inconsistent dependency lock file”

Any ideas what i’ve done wrong?

Hi @Bill_Matthews did you run before terraform init?

Yes and it seemed to complete without error

Ok. Let me check and see what’s going on. It seems that many users are having similar issues.

1 Like

Hello @Bill_Matthews
Did you run terraform init in the same directory, namely ~/environment/terraform? Can you try running terraform init -upgrade before terraform plan?

I was running terraform init in the correct directory.
I reran the lab today and didn’t encounter the same issues so have completed the lab

1 Like