title: Google Cloud platform terraform/terragrunt googleapi: Error 409: Requested entity already exist
body: <p>I am having a strange issue when trying to push code out to our gcp repo. It fails with the following error &quot;googleapi: Error 409: Requested entity already exists, alreadyExists&quot; and it is referring to a project that already exists() This only occurs after i either remove another project that's no longer needed or add .bck to the terragrunt.hcl files. These projects have no dependancies on each other whatsoever.</p>
  <pre><code>terraform {
  source = &quot;../../../modules//project/&quot;
  }
  
  include {
   path = find_in_parent_folders(&quot;org.hcl&quot;)
  }
  
  dependency &quot;folder&quot; {
  config_path = &quot;../&quot;
  
   # Configure mock outputs for the terraform commands that are returned when there are no 
   outputs available (e.g the
  # module hasn't been applied yet.
  mock_outputs_allowed_terraform_commands = [&quot;plan&quot;, &quot;validate&quot;]
  mock_outputs = {
  folder_id = &quot;folder-not-created-yet&quot;
  }
  }
  
  inputs = {
  project_name       = &quot;&lt;pimsstest-project&gt;&quot;
  folder_id          = dependency.folder.outputs.folder_created # Test folder id
  is_service_project = true
  </code></pre>
  <p>code push will fail with the structure in VS code is like this:</p>
  <p><a href="https://i.stack.imgur.com/kdods.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kdods.png" alt="enter image description here" /></a></p>
  <p>But it succeeds when like this</p>
  <p><a href="https://i.stack.imgur.com/WJmsB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WJmsB.png" alt="enter image description here" /></a></p>
  <p>Some background to add. Pimsstest used to exist in a production folder under org and i moved it to test via vs code with a simple cut and paste and re push of code. I then removed the project from the console as it still existed in production. I cannot work out why the removal of another project will flag up this existing error message on pimsstest. It doesn't make any sense to me.</p>