Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InstanceRole:
- Type: AWS::IAM::Role
- Properties:
- AssumeRolePolicyDocument:
- Version: '2012-10-17'
- Statement:
- - Effect: Allow
- Principal:
- Service:
- - ec2.amazonaws.com
- Action:
- - sts:AssumeRole
- Path: '/'
- RoleName: !Sub ${Namespace}-${Environment}-ec2-role
- Policies:
- - PolicyName: !Sub ${Namespace}-${Environment}-ec2-policy
- PolicyDocument:
- Version: '2012-10-17'
- Statement:
- - Effect: Allow
- Action:
- - logs:CreateLogGroup
- - logs:CreateLogStream
- - logs:PutLogEvents
- - logs:DescribeLogStreams
- Resource: '*'
- InstanceProfile:
- Type: AWS::IAM::InstanceProfile
- Properties:
- Path: /
- Roles:
- - !Ref InstanceRole
Add Comment
Please, Sign In to add comment