forked from org-formation/org-formation-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
organization-iam-tasks.yml
59 lines (56 loc) · 1.61 KB
/
organization-iam-tasks.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
DeveloperRole:
Type: update-stacks
Template: ./templates/cross-account-role.yml
StackName: my-developer-role
StackDescription: Developer Role Example
TerminationProtection: true
Parameters:
resourcePrefix: my
roleName: developer-role
rolePolicyArns:
- arn:aws:iam::aws:policy/PowerUserAccess
OrganizationBindings:
AssumeRoleBinding:
Account: !Ref SharedUsersAccount
RoleBinding:
OrganizationalUnit: !Ref DevelopmentOU
MaxConcurrentStacks: 10
FailedStackTolerance: 10
FinanceRole:
Type: update-stacks
Template: ./templates/cross-account-role.yml
StackName: my-finance-role
StackDescription: Finance Role Example
TerminationProtection: true
Parameters:
resourcePrefix: my
roleName: finance-role
rolePolicyArns:
- arn:aws:iam::aws:policy/job-function/Billing
OrganizationBindings:
AssumeRoleBinding:
Account: !Ref SharedUsersAccount
RoleBinding:
IncludeMasterAccount: true
MaxConcurrentStacks: 10
FailedStackTolerance: 10
DevOpsRoleWithAlarm:
Type: update-stacks
Template: ./templates/cross-account-role-with-alarm.yml
StackName: my-devops-role
StackDescription: DevOps Role with Alarm Example
TerminationProtection: true
Parameters:
resourcePrefix: my
roleName: devops-role
requireMfa: false
cloudTrailLogGroup: CloudTrail/audit-log
rolePolicyArns:
- arn:aws:iam::aws:policy/AdministratorAccess
OrganizationBindings:
AssumeRoleBinding:
Account: !Ref SharedUsersAccount
RoleBinding:
OrganizationalUnit: !Ref ProductionOU
MaxConcurrentStacks: 10
FailedStackTolerance: 10