Problem description
I'm always frustrated when I need to collect the ids of all projects and folders below the organization or below another folder.
I would like to be able to source all projects within a folder or below the organization and get them returned as a list. Same for the folder. Also the nested folders.
Proposed solution
It would be good to have additional data blocks or capabilities for
https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/resourcemanager_folder
https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/resourcemanager_project
to get a recursive list of the nested objects
Microsoft solved it like this:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subscriptions
or even better:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/management_group
with the following attribut references:

Problem description
I'm always frustrated when I need to collect the ids of all projects and folders below the organization or below another folder.
I would like to be able to source all projects within a folder or below the organization and get them returned as a list. Same for the folder. Also the nested folders.
Proposed solution
It would be good to have additional data blocks or capabilities for
https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/resourcemanager_folder
https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/data-sources/resourcemanager_project
to get a recursive list of the nested objects
Microsoft solved it like this:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/subscriptions
or even better:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/management_group
with the following attribut references: