Skip to content

Commit

Permalink
Merge branch 'main' into glacierPermission
Browse files Browse the repository at this point in the history
  • Loading branch information
jjzhangjjzhang authored Nov 17, 2023
2 parents 3b8dec2 + b868fe3 commit e7988b7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,14 @@ The audit policy is comprised of the following permissions:
| | apigatewayv2:GetRouteResponses | |
| | apigatewayv2:GetStages | |
| | apigatewayv2:GetVpcLinks | |
| GLACIER | glacier:ListTagsForVault | * |
| GLACIER | glacier:ListTagsForVault | * |
| WAFREGIONAL | waf-regional:ListRules | * |
| | waf-regional:GetRule | |
| | waf-regional:ListRuleGroups | |
| | waf-regional:GetRuleGroup | |
| | waf-regional:ListActivatedRulesInRuleGroup | |
| GLUE | glue:ListWorkflows | * |
| | glue:BatchGetWorkflows | |
| | glue:GetTags | |
| CODEBUILD | codebuild:ListBuilds | * |
| | codebuild:BatchGetBuilds | |
25 changes: 24 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,35 @@ data "aws_iam_policy_document" "lacework_audit_policy" {
"apigatewayv2:GetVpcLinks"]
resources = ["*"]
}

statement {
sid = "GLACIER"
actions = ["glacier:ListTagsForVault"]
resources = ["*"]
}
statement {
sid = "WAFREGIONAL"
actions = ["waf-regional:ListRules",
"waf-regional:GetRule",
"waf-regional:ListRuleGroups",
"waf-regional:GetRuleGroup",
"waf-regional:ListActivatedRulesInRuleGroup"]
resources = ["*"]
}
statement {
sid = "GLUE"
actions = ["glue:ListWorkflows",
"glue:BatchGetWorkflows",
"glue:GetTags"]
resources = ["*"]
}

statement {
sid = "CODEBUILD"
actions = ["codebuild:ListBuilds",
"codebuild:BatchGetBuilds",
]
resources = ["*"]
}
}

resource "aws_iam_policy" "lacework_audit_policy" {
Expand Down

0 comments on commit e7988b7

Please sign in to comment.