| page_title | subcategory | description |
|---|---|---|
stackit_authorization_project_custom_role Resource - stackit |
Custom Role resource schema. |
Custom Role resource schema.
resource "stackit_resourcemanager_project" "example" {
name = "example_project"
owner_email = "foo.bar@stackit.cloud"
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
resource "stackit_authorization_project_custom_role" "example" {
resource_id = stackit_resourcemanager_project.example.project_id
name = "my.custom.role"
description = "Some description"
permissions = [
"iam.subject.get"
]
}
# Only use the import statement, if you want to import an existing custom role
import {
to = stackit_authorization_project_custom_role.import-example
id = "${var.project_id},${var.custom_role_id}"
}description(String) A human readable description of the role.name(String) Name of the rolepermissions(List of String) Permissions for the roleresource_id(String) Resource to add the custom role to.
id(String) Terraform's internal resource identifier. It is structured as "[resource_id],[role_id]".role_id(String) The ID of the role.