-
Notifications
You must be signed in to change notification settings - Fork 2
/
slave.yml
38 lines (31 loc) · 879 Bytes
/
slave.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
AWSTemplateFormatVersion: 2010-09-09
Description: Slave Implements AWSCloudFormationStackSetExecutionRole
Parameters:
MasterAccountId:
Type: String
Description: AWS Account Id of the administrative account
MaxLength: 12
MinLength: 12
Resources:
StackSetExecutionRole:
Type: AWS::IAM::Role
Properties:
RoleName: AWSCloudFormationStackSetExecutionRole
AssumeRolePolicyDocument:
Version: 2012-10-17
Statement:
- Effect: Allow
Principal:
AWS:
- !Ref MasterAccountId
Action:
- sts:AssumeRole
Path: /
ManagedPolicyArns:
- !Sub arn:${AWS::Partition}:iam::aws:policy/AdministratorAccess
Outputs:
MasterAccountId:
Value: !Ref MasterAccountId
Description: Master AWS Account Id
Export:
Name: MasterAccountId