terraform-google-modules/terraform-google-scheduled-function

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

daniel-cit opened this issue · 0 comments

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