-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: new custom role resource (#546)
- Loading branch information
1 parent
23f36e5
commit 631df81
Showing
3 changed files
with
32 additions
and
4 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
15 changes: 15 additions & 0 deletions
15
examples/resources/env0_user_organization_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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
data "env0_user" "user_example" { | ||
email = "[email protected]" | ||
} | ||
|
||
resource "env0_custom_role" "custom_role" { | ||
name = "custom-role" | ||
permissions = [ | ||
"EDIT_PROJECT_SETTINGS" | ||
] | ||
} | ||
|
||
resource "env0_user_organization_assignment" "user_org" { | ||
user_id = data.env0_user.user_example.id | ||
custom_role_id = env0_custom_role.custom_role.id | ||
} |
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