terraform-provider-stackitp.../docs/resources/authorization_project_role_assignment.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* chore(examples): Add import examples for all resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add guide: How to import resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-08 14:03:27 +02:00

1.5 KiB

page_title subcategory description
stackit_authorization_project_role_assignment Resource - stackit project 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.

stackit_authorization_project_role_assignment (Resource)

project 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.

Example Usage

resource "stackit_authorization_project_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 project role assignment
import {
  to = stackit_authorization_project_role_assignment.import-example
  id = "${var.project_id},${var.project_role_assignment_role},${var.project_role_assignment_subject}"
}

Schema

Required

  • resource_id (String) project Resource to assign the role to.
  • role (String) Role to be assigned
  • subject (String) Identifier of user, service account or client. Usually email address or name in case of clients

Read-Only

  • id (String) Terraform's internal resource identifier. It is structured as "[resource_id],[role],[subject]".