Skip to content

Commit

Permalink
Remove unnecessary permission in AWS trust-relationship
Browse files Browse the repository at this point in the history
Removing account:GetContactInformation since it is no
longer a required permission for the CSPM feature to work.
  • Loading branch information
ravinadhruve10 committed Feb 28, 2024
1 parent eb0e52c commit 8c58165
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions modules/services/trust-relationship/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,6 @@ data "aws_iam_policy_document" "custom_resources_policy" {
"arn:aws:waf-regional:*:*:rulegroup/*"
]
}

statement {
sid = "AccessAccountContactInfo"

effect = "Allow"

actions = [
"account:GetContactInformation",
]

resources = [
"*",
]
}
}

#----------------------------------------------------------
Expand Down Expand Up @@ -146,11 +132,6 @@ Resources:
Resource:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Sid: "AccessAccountContactInfo"
Effect: "Allow"
Action:
- "account:GetContactInformation"
Resource: "*"
TEMPLATE
}

Expand Down

0 comments on commit 8c58165

Please sign in to comment.