I am trying to find a way to repeat the output blocks for each resources created using the count. for ex:
module "org_folders" {
source = "terraform-google-modules/folders/google"
version = "~> 2.0"
parent = "organizations/${var.organization_id}"
names = var.folders
}
folders variable is list of folders here. Now in the outputs.tf file I need to output the ids of all the created folders. If I add new folder in the folders list, I had to add a new output block as well.
Is there any way so I can repeat the output blocks as well?
Thanks in advance.