I deleted the project projects/project1-301106
and then created a new which ends with 301108
. But terraform always try to use the old project.
Error: Error creating Network: googleapi: Error 404: The resource 'projects/project1-301106' was not found, notFound
I deleted .terraform directory and files, ran terraform init
. Also cleared gcould and reauth but still the same error.
Try this solution.
Remove these files and folders:
sudo rm -r .terraform .terraform.lock.hcl terraform.tfstate terraform.tfstate.backup
Then:
terraform init
Finally:
terraform apply -auto-approve
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With