-
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.
Signed-off-by: Benjamin Ritter <[email protected]>
- Loading branch information
Benjamin Ritter
committed
Feb 10, 2025
1 parent
b35a03d
commit 3d0d825
Showing
8 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -15,8 +15,8 @@ Role Assignment resource schema. | |
```terraform | ||
resource "stackit_authorization_project_role_assignment" "example" { | ||
resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
role = "owner" | ||
subject = "[email protected]" | ||
role = "owner" | ||
subject = "[email protected]" | ||
} | ||
``` | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
examples/resources/stackit_authorization_project_role_assignment/resource.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
resource "stackit_authorization_project_role_assignment" "example" { | ||
resource_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
role = "owner" | ||
subject = "[email protected]" | ||
role = "owner" | ||
subject = "[email protected]" | ||
} |
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
4 changes: 2 additions & 2 deletions
4
stackit/internal/services/authorization/testfiles/double-definition.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
resource "stackit_authorization_project_role_assignment" "serviceaccount_duplicate" { | ||
resource_id = var.project_id | ||
role = "reader" | ||
subject = var.test_service_account | ||
role = "reader" | ||
subject = var.test_service_account | ||
} |
4 changes: 2 additions & 2 deletions
4
stackit/internal/services/authorization/testfiles/invalid-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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
resource "stackit_authorization_project_role_assignment" "invalid_role" { | ||
resource_id = var.project_id | ||
role = "thisrolesdoesnotexist" | ||
subject = var.test_service_account | ||
role = "thisrolesdoesnotexist" | ||
subject = var.test_service_account | ||
} |
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
4 changes: 2 additions & 2 deletions
4
stackit/internal/services/authorization/testfiles/project-owner.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
resource "stackit_authorization_project_role_assignment" "serviceaccount_project_owner" { | ||
resource_id = var.project_id | ||
role = "owner" | ||
subject = var.test_service_account | ||
role = "owner" | ||
subject = var.test_service_account | ||
} |