Skip to content

Instantly share code, notes, and snippets.

@eulersson
Created February 20, 2019 00:04
Show Gist options
  • Save eulersson/5edb79426ccac46043bc1e2dd534f037 to your computer and use it in GitHub Desktop.
Save eulersson/5edb79426ccac46043bc1e2dd534f037 to your computer and use it in GitHub Desktop.
ExecutionRole:
Type: AWS::IAM::Role
Properties:
RoleName: ecsfs-execution-role
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service: ecs-tasks.amazonaws.com
Action: sts:AssumeRole
ManagedPolicyArns:
- arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy
AutoScalingRole:
Type: AWS::IAM::Role
Properties:
RoleName: backend-auto-scaling-role
AssumeRolePolicyDocument:
Statement:
- Effect: Allow
Principal:
Service: ecs-tasks.amazonaws.com
Action: sts:AssumeRole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment