-
-
Save monkey-codes/2951050406ccf875e49c0ddd372465f0 to your computer and use it in GitHub Desktop.
Fargate Cluster ECS Role
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Resources: | |
| ... | |
| ECSTaskExecutionRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Statement: | |
| - Effect: Allow | |
| Principal: | |
| Service: [ecs-tasks.amazonaws.com] | |
| Action: ['sts:AssumeRole'] | |
| Path: / | |
| Policies: | |
| - PolicyName: AmazonECSTaskExecutionRolePolicy | |
| PolicyDocument: | |
| Statement: | |
| - Effect: Allow | |
| Action: | |
| # Allow the ECS Tasks to download images from ECR | |
| - 'ecr:GetAuthorizationToken' | |
| - 'ecr:BatchCheckLayerAvailability' | |
| - 'ecr:GetDownloadUrlForLayer' | |
| - 'ecr:BatchGetImage' | |
| # Allow the ECS tasks to upload logs to CloudWatch | |
| - 'logs:CreateLogStream' | |
| - 'logs:PutLogEvents' | |
| Resource: '*' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment