I have used terraform state list but it is showing that you can't read due to tfstate file is locked.
How do I unlock and get state of deploying resources?
Error: Error loading state: Failed to read state file: The state file could not be read: read terraform.tfstate: The process cannot access the file because another process has locked a portion of the file.