Skip to content

Instantly share code, notes, and snippets.

@kalinchernev
Created September 3, 2018 11:24
Show Gist options
  • Save kalinchernev/80b13b2db17689eb2b3b5800bac011c2 to your computer and use it in GitHub Desktop.
Save kalinchernev/80b13b2db17689eb2b3b5800bac011c2 to your computer and use it in GitHub Desktop.
iamRoleStatements:
...
# Allow running AWS Fargate containers when AWS Lambda timeout cannot be bypassed.
- Effect: 'Allow'
Action:
- ecs:RunTask
Resource: '*'
- Effect: Allow
Action:
- iam:PassRole
Resource:
Fn::Join:
- ''
- - 'arn:aws:iam::'
- Ref: 'AWS::AccountId'
- ':role/ecsTaskExecutionRole'
# ecsTaskExecutionRole is the name of the default role created by ECS,
...
# Allow queueing messages to the DLQ https://docs.aws.amazon.com/lambda/latest/dg/dlq.html
- Effect: 'Allow'
Action:
- sqs:SendMessage
Resource: '*'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment