|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "stackit_authorization_folder_custom_role Resource - stackit" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Custom Role resource schema. |
| 7 | +--- |
| 8 | + |
| 9 | +# stackit_authorization_folder_custom_role (Resource) |
| 10 | + |
| 11 | +Custom Role resource schema. |
| 12 | + |
| 13 | +## Example Usage |
| 14 | + |
| 15 | +```terraform |
| 16 | +resource "stackit_resourcemanager_folder" "example" { |
| 17 | + name = "example_folder" |
| 18 | + owner_email = "foo.bar@stackit.cloud" |
| 19 | + parent_container_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" |
| 20 | +} |
| 21 | +
|
| 22 | +resource "stackit_authorization_folder_custom_role" "example" { |
| 23 | + resource_id = stackit_resourcemanager_folder.example.folder_id |
| 24 | + name = "my.custom.role" |
| 25 | + description = "Some description" |
| 26 | + permissions = [ |
| 27 | + "iam.subject.get" |
| 28 | + ] |
| 29 | +} |
| 30 | +
|
| 31 | +# Only use the import statement, if you want to import an existing custom role |
| 32 | +import { |
| 33 | + to = stackit_authorization_folder_custom_role.import-example |
| 34 | + id = "${var.folder_id},${var.custom_role_id}" |
| 35 | +} |
| 36 | +``` |
| 37 | + |
| 38 | +<!-- schema generated by tfplugindocs --> |
| 39 | +## Schema |
| 40 | + |
| 41 | +### Required |
| 42 | + |
| 43 | +- `description` (String) A human readable description of the role. |
| 44 | +- `name` (String) Name of the role |
| 45 | +- `permissions` (List of String) Permissions for the role |
| 46 | +- `resource_id` (String) Resource to add the custom role to. |
| 47 | + |
| 48 | +### Read-Only |
| 49 | + |
| 50 | +- `id` (String) Terraform's internal resource identifier. It is structured as "[resource_id],[role_id]". |
| 51 | +- `role_id` (String) The ID of the role. |
0 commit comments