title: ECS Fargate Scheduled Task not running
body: <p>I'm trying to setup a scheduled task with ECS Fargate but I cannot figure out why it is not running. I can confirm the task works correctly using <code>RunTask</code> but when I try to trigger it on a schedule all I get is a bunch of 'FailedInvocations' with no explanation. </p>
  
  <p>I do know though that the rule is being triggered so this is a good sign. See the screenshot below:</p>
  
  <p><a href="https://i.stack.imgur.com/Q0Gzh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Q0Gzh.png" alt="enter image description here"></a></p>
  
  <p>But everytime it is triggered there is just a 'FailedInvocation'. Here's the scheduling rule:</p>
  
  <p><a href="https://i.stack.imgur.com/GCacs.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GCacs.png" alt="enter image description here"></a></p>
  
  <p>And the default permissions on the <code>ecsEventRole</code> with just <code>ecs:runTask</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/yR0rC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yR0rC.png" alt="enter image description here"></a></p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Effect": "Allow",
              "Action": [
                  "ecs:RunTask"
              ],
              "Resource": [
                  "*"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>My hunch says that this <code>ecsEventsRole</code> doesn't have enough permissions. Should I try to give it the ones that <code>ecsTaskExecutionRole</code> has?</p>
  
  <p>Thanks</p>
  
  <p>EDIT: This is now supported in <code>us-east-1</code> region. See comments.</p>