https://prefect.io logo
Title
a

Ashley Felber

12/08/2022, 5:25 PM
Hello, I have created a deployment using an ECStask block. The ECStask block is configured to run an existing task definition. When I try to run the deployment I get the following error: Submission failed. KeyError: "No class found for dispatch key 'ecs-task' in registry for type 'Block'." This error shows up under details of the flow run but there are no other logs.
j

James Sopkin

12/08/2022, 6:24 PM
Hi Ashley, could you try running
prefect block register -m prefect_aws.ecs
?
a

Ashley Felber

12/08/2022, 6:46 PM
Ok I just did that, same error. I also already have done that before.
@Taylor Curran Still stuck on this, haven’t been able to successfully run a deployment yet. No rush, just FYI.
j

James Gatter

02/16/2023, 9:52 PM
Was this ever resolved? Encountered the same issue
a

Ashley Felber

02/16/2023, 10:20 PM
@James Gatter Yes, I fixed it. The solution for me was installing prefect-aws on the agent. Will tag you in another thread for more details.
👍 1