Skip to content

Commit 468b61f

Browse files
authored
Merge pull request #378 from SumoLogic/ayiu_SUMO-192150_fgp_release_doc
SUMO-192150: FGP release doc
2 parents 0abee9a + f12dad9 commit 468b61f

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
## 2.16.0 (Unreleased)
22

3+
34
## 2.15.1 (Unreleased)
45

6+
FEATURES:
7+
* Add new optional `obj_permission` set to resource/sumologic_monitor_folder for Fine Grain Permission (FGP) support (GH-373)
8+
59
BUG FIXES:
610
* Fix bug in cse match list items creation (was timing out due to StateChangeConf on an infinite loop) (GH-377)
711

website/docs/r/monitor_folder.html.markdown

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description: |-
88
# sumologic_monitor_folder
99

1010
Provides the ability to create, read, delete, and update folders for [Monitors][1].
11+
-> If Fine Grain Permission (FGP) feature is enabled with Monitors Content at one's Sumo Logic account, one can also set those permission details under this monitor folder resource. For further details about FGP, please see this [Monitor Permission document][2].
1112

1213
## Example Monitor Folder
1314

@@ -22,9 +23,32 @@ resource "sumologic_monitor_folder" "tf_monitor_folder_1" {
2223

2324
## Example Nested Monitor Folders
2425

25-
NOTE: Monitor folders allow up to six (6) levels of sub-folders.
26+
NOTE:
27+
- Monitor folders allow up to six (6) levels of sub-folders.
28+
- `obj_permission` are added at one of the Folders to showcase how Fine Grain Permissions (FGP) are associated with two roles.
29+
2630

2731
```hcl
32+
resource "sumologic_role" "tf_test_role_01" {
33+
name = "tf_test_role_01"
34+
description = "Testing resource sumologic_role"
35+
capabilities = [
36+
"viewAlerts",
37+
"viewMonitorsV2",
38+
"manageMonitorsV2"
39+
]
40+
}
41+
42+
resource "sumologic_role" "tf_test_role_02" {
43+
name = "tf_test_role_02"
44+
description = "Testing resource sumologic_role"
45+
capabilities = [
46+
"viewAlerts",
47+
"viewMonitorsV2",
48+
"manageMonitorsV2"
49+
]
50+
}
51+
2852
resource "sumologic_monitor_folder" "tf_security_team_root_folder" {
2953
name = "Security Team Monitors"
3054
description = "Monitors used by the Security Team."
@@ -34,6 +58,16 @@ resource "sumologic_monitor_folder" "tf_security_team_prod_folder" {
3458
name = "Production Monitors"
3559
description = "Monitors for the Security Team Production Environment."
3660
parent_id = sumologic_monitor_folder.tf_security_team_root_folder.id
61+
obj_permission {
62+
subject_type = "role"
63+
subject_id = sumologic_role.tf_test_role_01.id
64+
permissions = ["Create","Read","Update"]
65+
}
66+
obj_permission {
67+
subject_type = "role"
68+
subject_id = sumologic_role.tf_test_role_02.id
69+
permissions = ["Create", "Read"]
70+
}
3771
}
3872
3973
resource "sumologic_monitor_folder" "tf_security_team_stag_folder" {
@@ -51,6 +85,17 @@ The following arguments are supported:
5185
- `name` - (Required) The name of the monitor folder. The name must be alphanumeric.
5286
- `description` - (Required) The description of the monitor folder.
5387
- `parent_id` - (Optional) The identifier of the Monitor Folder that contains this Monitor Folder. Defaults to the root folder.
88+
- `obj_permission` - (Optional) `obj_permission` construct represents a Permission Statement associated with this Folder. A set of `obj_permission` constructs can be specified under a single Folder. An `obj_permission` construct can be used to control permissions Explicitly associated with a Folder. But, it cannot be used to control permissions Inherited from a Parent / Ancestor Folder. Default FGP would be still set to the Folder upon creation (e.g. the creating user would have full permission), even if no `obj_permission` construct is specified at a Folder and the FGP feature is enabled at the account.
89+
- `subject_type` - (Required) Valid values:
90+
- `role`
91+
- `org`
92+
- `subject_id` - (Required) A Role ID or the Org ID of the account
93+
- `permissions` - (Required) A Set of Permissions. Valid Permission Values:
94+
- `Create`
95+
- `Read`
96+
- `Update`
97+
- `Delete`
98+
- `Manage`
5499

55100
Additional data provided in state:
56101

@@ -65,3 +110,4 @@ terraform import sumologic_monitor_folder.tf_monitor_folder_1 0000000000ABC123
65110
```
66111

67112
[1]: https://help.sumologic.com/?cid=10020
113+
[2]: https://help.sumologic.com/Beta/Capabilities_and_Permissions_for_Monitors#set-permissions-for-a-monitors-folder

0 commit comments

Comments
 (0)