Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions docs/resources/authorization_folder_role_assignment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_authorization_folder_role_assignment Resource - stackit"
subcategory: ""
description: |-
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.
---

# stackit_authorization_folder_role_assignment (Resource)

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.

## Example Usage

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

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `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/permissions`
- `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`".
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
page_title: "stackit_authorization_organization_role_assignment Resource - stackit"
subcategory: ""
description: |-
organization Role Assignment resource schema.
Organization 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_organization_role_assignment (Resource)

organization Role Assignment resource schema.
Organization 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.

Expand All @@ -35,9 +35,9 @@ import {
### Required

- `resource_id` (String) organization Resource to assign the role to.
- `role` (String) Role to be assigned
- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`
- `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]".
- `id` (String) Terraform's internal resource identifier. It is structured as "`resource_id`,`role`,`subject`".
23 changes: 15 additions & 8 deletions docs/resources/authorization_project_role_assignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@
page_title: "stackit_authorization_project_role_assignment Resource - stackit"
subcategory: ""
description: |-
project Role Assignment resource schema.
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.
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

```terraform
resource "stackit_authorization_project_role_assignment" "example" {
resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
role = "owner"
subject = "john.doe@stackit.cloud"
resource "stackit_resourcemanager_project" "example" {
name = "example_project"
owner_email = "foo.bar@stackit.cloud"
# in this case a folder or a org-id
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

resource "stackit_authorization_project_role_assignment" "pra" {
resource_id = stackit_resourcemanager_project.example.folder_id
role = "reader"
subject = "foo.bar@stackit.cloud"
}

# Only use the import statement, if you want to import an existing project role assignment
Expand All @@ -35,9 +42,9 @@ import {
### Required

- `resource_id` (String) project Resource to assign the role to.
- `role` (String) Role to be assigned
- `role` (String) Role to be assigned. Available roles can be queried using stackit-cli: `stackit curl https://authorization.api.stackit.cloud/v2/permissions`
- `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]".
- `id` (String) Terraform's internal resource identifier. It is structured as "`resource_id`,`role`,`subject`".
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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}"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
resource "stackit_authorization_project_role_assignment" "example" {
resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
role = "owner"
subject = "john.doe@stackit.cloud"
resource "stackit_resourcemanager_project" "example" {
name = "example_project"
owner_email = "foo.bar@stackit.cloud"
# in this case a folder or a org-id
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

resource "stackit_authorization_project_role_assignment" "pra" {
resource_id = stackit_resourcemanager_project.example.folder_id
role = "reader"
subject = "foo.bar@stackit.cloud"
}

# Only use the import statement, if you want to import an existing project role assignment
Expand Down
Loading
Loading