A project uses a remote S3 terraform state. I want to add a .terraform-version file so that tfenv can automatically switch to it. But first I want to verify the version currently stored in the remote state. I thought that this was one way to do it:
terraform state pull | grep terraform_version
But as pointed out, it does not provide the remote version, only the local. Is there a command to retrieve the remote terraform version?