mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
grant codebuild the ability to assume audit role
This commit is contained in:
@@ -26,14 +26,19 @@ Resources:
|
|||||||
AssumeRolePolicyDocument:
|
AssumeRolePolicyDocument:
|
||||||
Version: "2012-10-17"
|
Version: "2012-10-17"
|
||||||
Statement:
|
Statement:
|
||||||
-
|
- Effect: "Allow"
|
||||||
Effect: "Allow"
|
|
||||||
Principal:
|
Principal:
|
||||||
AWS: # TODO: review permissions to see if this can be narrowed down - code build only perhaps
|
AWS: # TODO: review permissions to see if this can be narrowed down - code build only perhaps
|
||||||
- !Sub "arn:aws:iam::${AuditorAccountId}:root"
|
- !Sub "arn:aws:iam::${AuditorAccountId}:root"
|
||||||
- !Sub "arn:aws:iam::${AuditorAccountId}:role${AuditRolePathName}"
|
|
||||||
Action:
|
Action:
|
||||||
- "sts:AssumeRole"
|
- "sts:AssumeRole"
|
||||||
|
- Effect: "Allow"
|
||||||
|
Principal:
|
||||||
|
Service:
|
||||||
|
- "codebuild.amazonaws.com"
|
||||||
|
Action:
|
||||||
|
- "sts:AssumeRole"
|
||||||
|
# TODO: restrict to only AuditorAccount only
|
||||||
Policies:
|
Policies:
|
||||||
- PolicyName: "ProwlerPolicyAdditions"
|
- PolicyName: "ProwlerPolicyAdditions"
|
||||||
PolicyDocument:
|
PolicyDocument:
|
||||||
|
|||||||
Reference in New Issue
Block a user