Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github Action Error: Unsupported deployment controller: ECS

I've been using a Github Action to update an ECS service on AWS without any issue for a few months, but today it started failing with:

Error: Unsupported deployment controller: ECS

Which is really odd because it definitely is supported as it used to work (I've made no changes to the workflow at all).

The entire process is:

  1. Builds the app as a Docker image
  2. Pushes the image to ECR
  3. Update the ECS task definition with the new image
  4. Deploy the updated task definition to ECS (this is the step that's failing)

The step definition is as below:

  - name: Deploy Amazon ECS task definition
    uses: aws-actions/amazon-ecs-deploy-task-definition@v1
    with:
      task-definition: ${{ steps.task-def.outputs.task-definition }}
      service: ${{ env.ECS_SERVICE }}
      cluster: ${{ env.ECS_CLUSTER }}
      wait-for-service-stability: true

I've enabled debug logging but unfortunately there is no descriptive stack trace or any information as to why it's failing.

I've tried manually updating the ECS service on AWS directly and it works so the cluster is definitely fine.

like image 477
Markoorn Avatar asked Mar 12 '26 17:03

Markoorn


1 Answers

It seems to be a known issue, the team have opened a Github issue: https://github.com/aws-actions/amazon-ecs-deploy-task-definition/issues/384

And there's an open PR to fix it so hopefully that gets merged soon: https://github.com/aws-actions/amazon-ecs-deploy-task-definition/pull/385

EDIT: The issue has now been resolved and closed on the official repo

like image 81
Markoorn Avatar answered Mar 14 '26 06:03

Markoorn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!