Skip to content

Implement IAM role attachment for folders. #1089

@l0wl3vel

Description

@l0wl3vel

Problem description

*Is your feature request related to a problem? If so, please give us a clear and concise description of what the problem is.
I want to attach a IAM role to a folder. This is currently only possible for organizations and projects.

Proposed solution

A clear and concise description of what you want to happen.

resource "stackit_authorization_folder_role_assignment" "example" {
  resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  role        = "owner"
  subject     = "john.doe@stackit.cloud"
}

# Only use the import statement, if you want to import an existing folder role assignment
import {
  to = stackit_authorization_folder_role_assignment.import-example
  id = "${var.folder_id},${var.org_role_assignment_role},${var.org_role_assignment_subject}"
}

Alternative solutions (optional)

A clear and concise description of any alternative solutions or features you've considered. (optional)

Additional information

Feel free to add any additional information here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions