-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add generic role_assignment resources
Signed-off-by: Benjamin Ritter <[email protected]>
- Loading branch information
Benjamin Ritter
committed
Feb 11, 2025
1 parent
3d0d825
commit 4f27e27
Showing
7 changed files
with
113 additions
and
54 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
docs/resources/authorization_organization_role_assignment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "stackit_authorization_organization_role_assignment Resource - stackit" | ||
subcategory: "" | ||
description: |- | ||
organization Role Assignment resource schema. | ||
--- | ||
|
||
# stackit_authorization_organization_role_assignment (Resource) | ||
|
||
organization Role Assignment resource schema. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `resource_id` (String) organization 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]". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
stackit/internal/services/authorization/testfiles/organization-role.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
resource "stackit_authorization_organization_role_assignment" "serviceaccount" { | ||
resource_id = var.organization_id | ||
role = "organization.member" | ||
subject = var.test_service_account | ||
} |
1 change: 1 addition & 0 deletions
1
stackit/internal/services/authorization/testfiles/prerequisites.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.