When you run terraform init, you might get these errors...
Try terraform init -upgrade
to download all providers and to update the lock file.
Ensure your provider blocks in your .tf
file is properly defined.
If this doesn't work, try deleting the lock file and re-init.
Also ensure you have a compatible terraform version, via command: terraform version