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
28 changes: 28 additions & 0 deletions docs/data-sources/authorization_folder_custom_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_authorization_folder_custom_role Data Source - stackit"
subcategory: ""
description: |-
Custom Role resource schema.
---

# stackit_authorization_folder_custom_role (Data Source)

Custom Role resource schema.



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

### Required

- `resource_id` (String) Resource to add the custom role to.
- `role_id` (String) The ID of the role.

### Read-Only

- `description` (String) A human readable description of the role.
- `id` (String) Terraform's internal resource identifier. It is structured as "[resource_id],[role_id]".
- `name` (String) Name of the role
- `permissions` (List of String) Permissions for the role
28 changes: 28 additions & 0 deletions docs/data-sources/authorization_organization_custom_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_authorization_organization_custom_role Data Source - stackit"
subcategory: ""
description: |-
Custom Role resource schema.
---

# stackit_authorization_organization_custom_role (Data Source)

Custom Role resource schema.



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

### Required

- `resource_id` (String) Resource to add the custom role to.
- `role_id` (String) The ID of the role.

### Read-Only

- `description` (String) A human readable description of the role.
- `id` (String) Terraform's internal resource identifier. It is structured as "[resource_id],[role_id]".
- `name` (String) Name of the role
- `permissions` (List of String) Permissions for the role
51 changes: 51 additions & 0 deletions docs/resources/authorization_folder_custom_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "stackit_authorization_folder_custom_role Resource - stackit"
subcategory: ""
description: |-
Custom Role resource schema.
---

# stackit_authorization_folder_custom_role (Resource)

Custom Role resource schema.

## Example Usage

```terraform
resource "stackit_resourcemanager_folder" "example" {
name = "example_folder"
owner_email = "foo.bar@stackit.cloud"
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

resource "stackit_authorization_folder_custom_role" "example" {
resource_id = stackit_resourcemanager_folder.example.folder_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_folder_custom_role.import-example
id = "${var.folder_id},${var.custom_role_id}"
}
```

<!-- schema generated by tfplugindocs -->
## 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.
45 changes: 45 additions & 0 deletions docs/resources/authorization_organization_custom_role.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
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

```terraform
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 generated by tfplugindocs -->
## 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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
resource "stackit_resourcemanager_folder" "example" {
name = "example_folder"
owner_email = "foo.bar@stackit.cloud"
parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

resource "stackit_authorization_folder_custom_role" "example" {
resource_id = stackit_resourcemanager_folder.example.folder_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_folder_custom_role.import-example
id = "${var.folder_id},${var.custom_role_id}"
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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}"
}

Loading
Loading