Skip to content

Commit

Permalink
Add permission for AMP (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
LMAX-iwnf authored Dec 18, 2024
1 parent 86b54bd commit 0a313fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,11 @@ The audit policy is comprised of the following permissions:
| | kinesisanalytics:ListApplicationVersions | |
| | kinesisanalytics:DescribeApplicationVersion | |
| | kinesisanalytics:DescribeApplication | |
| AMP | aps:ListScrapers | * |
| | aps:DescribeScraper | |
| | aps:ListWorkspaces | |
| | aps:DescribeAlertManagerDefinition | |
| | aps:DescribeLoggingConfiguration | |
| | aps:DescribeWorkspace | |
| | aps:ListRuleGroupsNamespaces | |
| | aps:DescribeRuleGroupsNamespace | |
14 changes: 14 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,20 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
]
resources = ["*"]
}

statement {
sid = "AMP"
actions = ["aps:ListScrapers",
"aps:DescribeScraper",
"aps:ListWorkspaces",
"aps:DescribeAlertManagerDefinition",
"aps:DescribeLoggingConfiguration",
"aps:DescribeWorkspace",
"aps:ListRuleGroupsNamespaces",
"aps:DescribeRuleGroupsNamespace",
]
resources = ["*"]
}
}

resource "aws_iam_policy" "lacework_audit_policy" {
Expand Down

0 comments on commit 0a313fe

Please sign in to comment.