Skip to content

Commit

Permalink
Merge pull request #55 from draios/remove-unnecessary-perm
Browse files Browse the repository at this point in the history
Update permissions in AWS trust-relationship
  • Loading branch information
ravinadhruve10 authored Mar 11, 2024
2 parents 5746d19 + 334598a commit bcf25d3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/services/trust-relationship/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ data "aws_iam_policy_document" "custom_resources_policy" {
}

statement {
sid = "AccessAccountContactInfo"
sid = "ListJobsOnConsole"

effect = "Allow"

actions = [
"account:GetContactInformation",
"macie2:ListClassificationJobs",
]

resources = [
Expand Down Expand Up @@ -146,10 +146,9 @@ Resources:
Resource:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Sid: "AccessAccountContactInfo"
- Sid: "ListJobsOnConsole"
Effect: "Allow"
Action:
- "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
TEMPLATE
}
Expand Down

0 comments on commit bcf25d3

Please sign in to comment.