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 https://bitbucket.org/byrider/dealscoring_microservice_test/addon/pipelines/home#!/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.
This is supposed to be a bug report but I'm not sure how to do that
@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:
script: - pipe: atlassian/aws-ecs-deploy:1.1.3 variables: CLUSTER_NAME: 'my-ecs-cluster' SERVICE_NAME: 'my-ecs-service' TASK_DEFINITION: 'task-definition.json'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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 (https://docs.aws.amazon.com/AmazonECS/latest/userguide/deployment-type-bluegreen.html)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are seeing this behavior as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.