Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.41 KB

File metadata and controls

51 lines (40 loc) · 1.41 KB
page_title subcategory description
stackit_authorization_project_custom_role Resource - stackit
Custom Role resource schema.

stackit_authorization_project_custom_role (Resource)

Custom Role resource schema.

Example Usage

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}"
}

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.