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-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

@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 # people like this

We are seeing this behavior as well.

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.

Suggest an answer

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

573 views 15 18
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