title: Failed to register task definition in ECS with GitHub Actions
body: <p>I am setting up a Github Actions CI to AWS Fargate.
  But facing a permission issue on the step of Deploy Amazon ECS task definition.</p>
  <p>Getting the following error:</p>
  <p><strong>##[error]Failed to register task definition in ECS: Fargate requires task definition to have execution role ARN to support ECR images.</strong></p>
  <p>Already verified the following:</p>
  <ul>
  <li>ecsTaskExecutionRole exists</li>
  <li>AmazonECSTaskExecutionRolePolicy exists</li>
  <li>AmazonECSTaskExecutionRolePolicy is attached to the role</li>
  <li>Trust policy is in place</li>
  <li>Task Definition is assigned to the ecsTaskExecutionRole  Role
  all outlined in <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html</a></li>
  </ul>
  <p>Any hints on how to further debug / resolve things are appreciated</p>
  <pre><code> Deploy Amazon ECS task definition2s
      cluster: default
  ##[debug]Evaluating condition for step: 'Deploy Amazon ECS task definition'
  ##[debug]Evaluating: success()
  ##[debug]Evaluating success:
  ##[debug]=&gt; true
  ##[debug]Result: true
  ##[debug]Starting: Deploy Amazon ECS task definition
  ##[debug]Loading inputs
  ##[debug]Evaluating: steps.task-def.outputs.task-definition
  ##[debug]Evaluating Index:
  ##[debug]..Evaluating Index:
  ##[debug]....Evaluating Index:
  ##[debug]......Evaluating steps:
  ##[debug]......=&gt; Object
  ##[debug]......Evaluating String:
  ##[debug]......=&gt; 'task-def'
  ##[debug]....=&gt; Object
  ##[debug]....Evaluating String:
  ##[debug]....=&gt; 'outputs'
  ##[debug]..=&gt; Object
  ##[debug]..Evaluating String:
  ##[debug]..=&gt; 'task-definition'
  ##[debug]=&gt; '/home/runner/work/_temp/task-definition--3322-yHLvp6V1t9QO-.json'
  ##[debug]Result: '/home/runner/work/_temp/task-definition--3322-yHLvp6V1t9QO-.json'
  ##[debug]Loading env
  Run aws-actions/amazon-ecs-deploy-task-definition@v1
  ##[debug]Registering the task definition
  ##[error]Failed to register task definition in ECS: Fargate requires task definition to have execution role ARN to support ECR images.
  </code></pre>