Background
Terraform will store state in a terraform.tfstate
file in the working directory in local operations, but you may notice a terraform.tfstate
file under the .terraform
directory. Despite having the same name, this is not the state file.
Example
Explanation
Terraform will create a terraform.tfstate
file under the .terraform/
directory when a backend or cloud block is configured.
This file stores information about the backend connection, including access credentials, and is not interoperable with the state file.
Additional Information
For additional assistance please contact HashiCorp Support to request additional assistance