Menu
Amazon EC2 Container Service
Developer Guide (API Version 2014-11-13)

CloudWatch Events IAM Role

Before you can use Amazon ECS scheduled tasks with CloudWatch Events rules and targets, the CloudWatch Events service needs permission to run Amazon ECS tasks on your behalf. These permissions are provided by the CloudWatch Events IAM role (ecsEventsRole).

The CloudWatch Events role is created for you in the AWS Management Console when you configure a scheduled task. For more information, see Scheduled Tasks (cron).

The AmazonEC2ContainerServiceEventsRole policy is shown below.

Copy
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ecs:RunTask" ], "Resource": [ "*" ] } ] }