Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

aws-ecs-deploy:1.6.1 - "There are no active task definitions for the service x on the cluster y..."


Having issues getting aws-ecs-deploy working with my cluster created by a cloudFormation template as part of docker compose's ECS integration.

I am positive my AWS keys are working (I've tried running with bogus info and it fails differently), however I am also sure that my cluster name and service name are spelled correctly as well. This was confirmed by running the AWS CLI command:

aws ecs describe-services --services x --cluster y

Which returns a nice long JSON dump and I clearly see the ARN of my taskDefinition listed.

Here's my bitbucket-pipelines.yml:

# This is an example Starter pipeline configuration

# Use a skeleton to build, test and deploy using manual and parallel steps

# -----

# You can specify a custom docker image from Docker Hub as your build environment.

image: atlassian/default-image:2



    - parallel:

      - step:

          name: 'Build and Test'


            - echo "Your build and test goes here..."

      - step:

          name: 'Lint'


            - echo "Your linting goes here..."

      - step:

          name: 'Security scan'


            - echo "Your security scan goes here..."

    # The following deployment steps will be executed for each pipeline run. To configure your steps and conditionally deploy see

    - step:

        name: 'Deployment to Staging'

        deployment: staging


          - pipe: atlassian/aws-ecs-deploy:1.6.1




              AWS_DEFAULT_REGION: 'us-east-2'

              CLUSTER_NAME: 'y'

              SERVICE_NAME: 'x'

              FORCE_NEW_DEPLOYMENT: 'true'

Here's the error output after building: (FYI I found a typo - defifnitions)


INFO: Using default authentication with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

INFO: Check for active task definition...

INFO: Found credentials in environment variables.

✖ There are no active tasks defifnitions for the service x on the cluster y. Check your service on the AWS Console or provide the TASK_DEFINITION variable.

What gives?

PS: I am unsure what to put for the image, because I'm expecting my task definition to define which image to use from ECR when this is working correctly.


1 answer

Found the solution on this. My AWS credentials were wrong.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,519 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you