Skip to content

Commit

Permalink
Update permissions in AWS trust-relationship CFT templates (#117)
Browse files Browse the repository at this point in the history
* Remove unnecessary permission in AWS trust-relationship CFT templates

Removing account:GetContactInformation since it is no longer a
required permission for the CSPM feature to work.

* Add macie2:ListClassificationJobs permission
  • Loading branch information
ravinadhruve10 authored Mar 11, 2024
1 parent e3afb31 commit 20f2d71
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion templates_cspm/CloudAgentlessRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"

Outputs:
Expand Down
4 changes: 2 additions & 2 deletions templates_cspm/OrgCloudAgentlessRole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
RoleStackSet:
Type: AWS::CloudFormation::StackSet
Expand Down Expand Up @@ -136,5 +136,5 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
2 changes: 1 addition & 1 deletion templates_cspm_cloudlogs/FullInstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
CloudLogsRole:
Type: "AWS::IAM::Role"
Expand Down
4 changes: 2 additions & 2 deletions templates_cspm_cloudlogs/OrgFullInstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
CloudLogsRole:
Type: "AWS::IAM::Role"
Expand Down Expand Up @@ -190,5 +190,5 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
2 changes: 1 addition & 1 deletion templates_cspm_eventbridge/FullInstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
EventBridgeRole:
Type: AWS::IAM::Role
Expand Down
4 changes: 2 additions & 2 deletions templates_cspm_eventbridge/OrgFullInstall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
EventBridgeRole:
Type: AWS::IAM::Role
Expand Down Expand Up @@ -245,7 +245,7 @@ Resources:
- "arn:aws:waf-regional:*:*:rule/*"
- "arn:aws:waf-regional:*:*:rulegroup/*"
- Effect: "Allow"
Action: "account:GetContactInformation"
Action: "macie2:ListClassificationJobs"
Resource: "*"
EventBridgeRole:
Type: AWS::IAM::Role
Expand Down

0 comments on commit 20f2d71

Please sign in to comment.