Skip to content

project_cleanup: removal of folder should respect the same time constraint used for projects  #78

@daniel-cit

Description

@daniel-cit

TL;DR

A folder should only be remove if it is older that the resource creation cut off time

Expected behavior

an empty folder is only deleted if it was created before the resource creation cut off time

Observed behavior

between the time a folder was created and another folder was created under it the first folder was removed. the frist folder was a few minutes old.

 Error: Error creating folder 'fldr-bootstrap' in 'folders/1083015950553': Error waiting for creating folder: Error code 9, message: Folder reservation failed for parent [folders/1083015950553], folder [] due to constraint: The destination resource has been deleted.
 
   with google_folder.bootstrap,
   on main.tf line 27, in resource "google_folder" "bootstrap":
   27: resource "google_folder" "bootstrap" {

Terraform Configuration

N/A

Terraform Version

N/A

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions