-
Notifications
You must be signed in to change notification settings - Fork 1
/
ssmRoles.yml
46 lines (45 loc) · 1.37 KB
/
ssmRoles.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: SSM EC2 and SSM Automation roles
Metadata:
Comments: Development
LastUpdated: 2017 02 16
UpdatedBy: Hamin Mousavi
Version: '0.1'
Resources:
AmazonEC2RoleforSSM:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: ['sts:AssumeRole']
Effect: Allow
Principal:
Service: [ec2.amazonaws.com, ssm.amazonaws.com]
ManagedPolicyArns: ['arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM']
Path: /
Type: AWS::IAM::Role
AutomationServiceRole:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: ['sts:AssumeRole']
Effect: Allow
Principal:
Service: [ec2.amazonaws.com, ssm.amazonaws.com]
ManagedPolicyArns: ['arn:aws:iam::aws:policy/service-role/AmazonSSMAutomationRole']
Path: /
Type: AWS::IAM::Role
InstanceProfile:
Properties:
Roles: [!Ref 'AmazonEC2RoleforSSM']
Type: AWS::IAM::InstanceProfile
MaintenanceWindowRole:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action: ['sts:AssumeRole']
Effect: Allow
Principal:
Service: [ec2.amazonaws.com, ssm.amazonaws.com]
ManagedPolicyArns: ['arn:aws:iam::aws:policy/service-role/AmazonSSMMaintenanceWindowRole']
Path: /
Type: AWS::IAM::Role