-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcf-prowler-spoke-account.yml
45 lines (40 loc) · 1.17 KB
/
cf-prowler-spoke-account.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
AWSTemplateFormatVersion: '2010-09-09'
Description: Stack providing cross account access for Prowler
# Suggested StackName : prowler-spoke-account
Parameters:
ProwlerCentralAccount:
Description: AWS account ID where Prowler is installed
Type: String
ConstraintDescription: Must be a valid AWS account ID
ProwlerRoleExternalId:
Description: Prowler Role ExternalID
Type: String
Resources:
ProwlerScanAssumeRole:
Type: AWS::IAM::Role
Properties:
RoleName: prowler-scan-role
MaxSessionDuration: 3600
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
AWS: !Sub 'arn:aws:iam::${ProwlerCentralAccount}:root'
Action:
- sts:AssumeRole
Condition:
StringEquals:
"sts:ExternalId": !Ref ProwlerRoleExternalId
ManagedPolicyArns:
- arn:aws:iam::aws:policy/SecurityAudit
Path: "/"
Policies:
- PolicyName: additionalProwlerPolicies
PolicyDocument:
Statement:
- Effect: "Allow"
Action:
- "support:DescribeTrustedAdvisorChecks"
Resource:
- "*"