Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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-code-deploy:0.5.2 fails for ECS deployments

Trying to use the pipe to deploy to ECS fails because the AWS API doesn't accept the --file-exists-behavior option. Please exclude this option for ECS and Lambda deployment types.


aws deploy create-deployment --application-name dealscoring-dev-app --deployment-group dealscoring-dev-dpg --description Deployed from Bitbucket Pipelines using aws-code-deploy pipe. For details follow the link!/results/142 --revision revisionType=S3,s3Location={bucket=jdbs-appspec-oh,bundleType=JSON,key=dealscoring/dealscoring-dev-app-142-271abc3e} --no-ignore-application-stop-failures --file-exists-behavior DISALLOW

An error occurred (InvalidFileExistsBehaviorException) when calling the CreateDeployment operation: For Lambda and ECS deployment, fileExistsBehavior can not be specified

✖ Failed to create deployment.

3 answers

This is supposed to be a bug report but I'm not sure how to do that

0 votes

Hi @jparker4 ,

Thank you for the feedback!

We'll update the pipe and notify you.

Also, for AWS ECS you can use aws-ecs-deploy pipe.

0 votes

@jparker4 We are working on aws-code-deploy pipe adding support AWS ECS and Lambda deploy, not only EC2.

Could you please share more details with us, why did you decide to use aws-code-deploy to deploy lambda instead of aws-ecs-deploy pipe? And what workflow do you use for ECS deploy?

One of the solutions, in your case, might be:

  - pipe: atlassian/aws-ecs-deploy:1.1.3
      CLUSTER_NAME: 'my-ecs-cluster'
      SERVICE_NAME: 'my-ecs-service'
      TASK_DEFINITION: 'task-definition.json'

@Oleksandr Kyrdan I'm also having this problem. I need to use CodeDeploy as we're using the blue/green deployment AWS supports for ECS (

Like Jeff likes this
Jeff I'm New Here Jan 11, 2021

We are seeing this behavior as well.

Suggest an answer

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

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
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