Guest User

Untitled

a guest
Mar 18th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. InstanceRole:
  2. Type: AWS::IAM::Role
  3. Properties:
  4. AssumeRolePolicyDocument:
  5. Version: '2012-10-17'
  6. Statement:
  7. - Effect: Allow
  8. Principal:
  9. Service:
  10. - ec2.amazonaws.com
  11. Action:
  12. - sts:AssumeRole
  13. Path: '/'
  14. RoleName: !Sub ${Namespace}-${Environment}-ec2-role
  15. Policies:
  16. - PolicyName: !Sub ${Namespace}-${Environment}-ec2-policy
  17. PolicyDocument:
  18. Version: '2012-10-17'
  19. Statement:
  20. - Effect: Allow
  21. Action:
  22. - logs:CreateLogGroup
  23. - logs:CreateLogStream
  24. - logs:PutLogEvents
  25. - logs:DescribeLogStreams
  26. Resource: '*'
  27.  
  28. InstanceProfile:
  29. Type: AWS::IAM::InstanceProfile
  30. Properties:
  31. Path: /
  32. Roles:
  33. - !Ref InstanceRole
Add Comment
Please, Sign In to add comment