I am trying to initialize terraform with existing remote state file with the below command.
terraform init -no-color -reconfigure
-backend-config=/appbackend.tfvars
-from-module=./app_model/with_vm
the appbackend.tfvars has the Azure storage account details.
But the init command is not working and it throws the below error.
Error: Can’t populate non-empty directory
The target directory . is not empty, so it cannot be initialized with the -from-module=…
I searched for the error reason and I couldn’t find any. Could someone explain what is the error about.