Skip to content

Instantly share code, notes, and snippets.

@arutnik
Created October 26, 2017 14:45
Show Gist options
  • Save arutnik/5d3b7212863fd4f796d5b47db6904857 to your computer and use it in GitHub Desktop.
Save arutnik/5d3b7212863fd4f796d5b47db6904857 to your computer and use it in GitHub Desktop.
EBS Backup IAM Role
EBSSnapshotRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service: automation.amazonaws.com
Action:
- sts:AssumeRole
Path: /
Policies:
- PolicyName: root
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- "ec2:Describe*"
- "ec2:RebootInstances"
- "ec2:StopInstances"
- "ec2:TerminateInstances"
- "ec2:CreateSnapshot"
Resource: '*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment