2016-08-23 18:19:43 +02:00
|
|
|
{
|
|
|
|
"Version": "2012-10-17",
|
|
|
|
"Statement": [
|
|
|
|
{
|
|
|
|
"Sid": "ecsInstanceRole",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"ecs:DeregisterContainerInstance",
|
|
|
|
"ecs:DiscoverPollEndpoint",
|
|
|
|
"ecs:Poll",
|
|
|
|
"ecs:RegisterContainerInstance",
|
2017-06-21 15:58:55 +02:00
|
|
|
"ecs:Submit*",
|
|
|
|
"ecs:StartTelemetrySession"
|
2016-08-23 18:19:43 +02:00
|
|
|
],
|
|
|
|
"Resource": [
|
|
|
|
"*"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Sid": "allowLoggingToCloudWatch",
|
|
|
|
"Effect": "Allow",
|
|
|
|
"Action": [
|
|
|
|
"logs:CreateLogStream",
|
|
|
|
"logs:PutLogEvents"
|
|
|
|
],
|
|
|
|
"Resource": [
|
|
|
|
"${app_log_group_arn}",
|
|
|
|
"${ecs_log_group_arn}"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|