I am tryting to config local tfstate file path with the type “local” of backend.
But no matter how I config it, the tfstate file always created at “.terraform”
How can I solve it , thanks a lot
Hi @781058829,
There is no state stored in the .terraform/
directory, that is for internal data needed by the Terraform CLI. Your local backend configuration will store the state at the path location shown.
There will be 2 tfstate files first under terraform folder that is created with terraform initialization
Second when applying your configuration and is created in the given location
Thanks ,The terraform.tfstate will created at “.terraform/” directory when I configure backend with path=“/data/blobmount/terraform.tfstate”.
However I think it should be created at “/data/blobmount/”, I have no idea about the reason.