-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from JupiterOne/no-card-add-docs
No card: Add docs for resource permissions
- Loading branch information
Showing
5 changed files
with
118 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resource "jupiterone_resource_group" "resource" { | ||
name = "Engineering" | ||
} |
49 changes: 49 additions & 0 deletions
49
examples/resources/jupiterone_resource_permission/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,49 @@ | ||
resource "jupiterone_resource_group" "engineering" { | ||
name = "Engineering" | ||
} | ||
|
||
resource "jupiterone_dashboard" "compliance" { | ||
name = "Compliance" | ||
type = "Account" | ||
resource_group_id = jupiterone_resource_group.engineering.id | ||
} | ||
|
||
resource "jupiterone_dashboard" "device_matrix" { | ||
name = "Device Matrix" | ||
type = "Account" | ||
resource_group_id = jupiterone_resource_group.engineering.id | ||
} | ||
|
||
resource "jupiterone_dashboard" "key_insights" { | ||
name = "Key Insights" | ||
type = "Account" | ||
} | ||
|
||
resource "jupiterone_user_group" "engineering" { | ||
name = "Engineering" | ||
description = "This group can view and manage all dashboards in the Engineering resource group as well as view the Key Insights dashboard." | ||
} | ||
|
||
resource "jupiterone_resource_permission" "engineering_compliance" { | ||
subject_type = "group" | ||
subject_id = jupiterone_user_group.engineering.id | ||
resource_area = "dashboard" | ||
resource_type = "resource_group" | ||
resource_id = "*" | ||
canCreate = true | ||
canRead = true | ||
canUpdate = true | ||
canDelete = true | ||
} | ||
|
||
resource "jupiterone_resource_permission" "engineering_compliance" { | ||
subject_type = "group" | ||
subject_id = jupiterone_user_group.engineering.id | ||
resource_area = "dashboard" | ||
resource_type = "dashboard" | ||
resource_id = jupiterone_dashboard.key_insights.id | ||
canCreate = false | ||
canRead = true | ||
canUpdate = false | ||
canDelete = false | ||
} |
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