Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.22 KB

File metadata and controls

45 lines (35 loc) · 1.22 KB
page_title stackit_authorization_organization_custom_role Resource - stackit
subcategory
description Custom Role resource schema.

stackit_authorization_organization_custom_role (Resource)

Custom Role resource schema.

Example Usage

resource "stackit_authorization_organization_custom_role" "example" {
  resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  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_organization_custom_role.import-example
  id = "${var.organization_id},${var.custom_role_id}"
}

Schema

Required

  • description (String) A human readable description of the role.
  • name (String) Name of the role
  • permissions (List of String) Permissions for the role
  • resource_id (String) Resource to add the custom role to.

Read-Only

  • id (String) Terraform's internal resource identifier. It is structured as "[resource_id],[role_id]".
  • role_id (String) The ID of the role.