Skip to content

Instantly share code, notes, and snippets.

@wreulicke
Created June 1, 2018 22:17
Show Gist options
  • Save wreulicke/150b43b29788448cc59d5489eb5faedd to your computer and use it in GitHub Desktop.
Save wreulicke/150b43b29788448cc59d5489eb5faedd to your computer and use it in GitHub Desktop.
EcsEventRole
{
"Path": "/",
"RoleName": "ecsEventsRole",
"RoleId": "<id>",
"Arn": "arn:aws:iam::<accountId>:role/ecsEventsRole",
"CreateDate": "2018-05-31T01:46:03Z",
"AssumeRolePolicyDocument": {
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": "events.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ecs:RunTask"
],
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": [
"*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": "ecs-tasks.amazonaws.com"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment