Terraform plan not giving any output

I am very new to terraform, currently doing an online course doing some basic stuff with AWS. I was working fine, creating EC2 etc, but at some point today something happened and when I execute terraform plan or apply I am not getting an output even on a project that was working fine and no changes to it where made.
Also terraform version works fine.

Any help what this might be? Running it on Windows 10.

EDIT: I left kept waiting until I got an output and after around 5mins it worked… before it was giving an output after a couple of seconds. Any thoughts?