Skip to content

Support Data Blocks for nested Folders and Projects #1499

@tim-szostakowski-rewion

Description

@tim-szostakowski-rewion

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:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions