Skip to content

Instantly share code, notes, and snippets.

@vthub
Created January 4, 2020 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vthub/6fe4d387b5465234d1aa0459a847f748 to your computer and use it in GitHub Desktop.
Save vthub/6fe4d387b5465234d1aa0459a847f748 to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:RunTask"
],
"Resource": [
"${replace(aws_ecs_task_definition.definition.arn, "/:\\d+$/", ":*")}"
]
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment