| page_title | subcategory | description |
|---|---|---|
stackit_authorization_folder_role_assignment Resource - stackit |
Folder Role Assignment resource schema.
~> This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion. |
Folder Role Assignment resource schema.
~> This resource is part of the iam experiment and is likely going to undergo significant changes or be removed in the future. Use it at your own discretion.
resource "stackit_resourcemanager_folder" "example" {
name = "example_folder"
owner_email = "foo.bar@stackit.cloud"
# in this case a org-id
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_folder_role_assignment" "fra" {
resource_id = stackit_resourcemanager_folder.example.folder_id
role = "reader"
subject = "foo.bar@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.folder_role_assignment},${var.folder_role_assignment_subject}"
}resource_id(String) Folder Resource to assign the role to.role(String) Role to be assigned. Available roles can be queried using stackit-cli:stackit curl https://authorization.api.stackit.cloud/v2/permissionssubject(String) Identifier of user, service account or client. Usually email address or name in case of clients. All letters must be lowercased.
id(String) Terraform's internal resource identifier. It is structured as "resource_id,role,subject".