Most likely the assigned role which should invoke the ECS Task doesn't has the permission for `ecs:RunTask`. But to find the exact route cause, you have to go to "CloudTrail > Event history" and then look for the corresponding RunTask event. In the detail view you will find the "errorMessage".