Hi, did you follow the proposed steps? it is not clear from the picture what’s the issue
Hello, I am also facing the same problem. Could you find a way to solve ?
Hello, I had this issue. It occurs when you time out and have to come back in. It is because you have the previous version of Terraform already running and the file is locked. You’ll need to find and remove the locked file then start again.
in Terminal:
- Point to the right (hidden) lock file (basename will need to be updated to yours)
[see screenshot. formatting issues in this message]
- Inspect then remove
ls -la “$LOCK_FILE” || echo “No lock file found”
rm -f “$LOCK_FILE”
- (Optional) clean any other stray terraform lock files in that dir
find “$LOCK_DIR” -maxdepth 1 -name “*.lock.info” -ls -delete
- Sanity: ensure no terraform processes
ps -ef | grep -i terraform | grep -v grep || true
If nothing happens then it is removed. if it is there, something will appear.
- Re-run from your terraform dir
cd ~/project/terraform
terraform plan
Since the Terraform is already there, you can also ignore the setup steps and just proceed with the commands with the Terraform folder (what you do after Terraform Apply)

