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

pipe: atlassian/aws-ecs-deploy does not support CODE_DEPLOY controller

I have an ECS cluster & service that use CodeDeploy.  However, I get this error when I use this pipe:

 

Failed to update the stack.

 

An error occurred (InvalidParameterException) when calling the UpdateService operation: Unable to update task definition on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment.

 

 

1 answer

0 votes

Hi @Monica Gordillo

Thank you for your question!

We'll investigate this case and notify you.

It'd be nice if you provide us with more details about your pipelines configuration and logs.

 

Best regards,
Oleksandr Kyrdan

Hello @Oleksandr Kyrdan ,

 

I ended up using atlassian/aws-code-deploy:1.1.0 for my ECS code deployment.  Within the AWS ECS service, I'm using CodeDeploy:  ecs_screenshot.png

With atlassian/aws-code-deploy:1.1.0, I had to upload my task definition outside of the pipe & the BUNDLE_TYPE had to be set to YAML.  

I am facing the same issue @Monica Gordillo how does your pipeline look like? Can you please share?

This is what I ended up using in my step:

 

- echo "Uploading task definition"
- aws ecs register-task-definition --family $ECS_TASK_FAMILY_NAME --region="$AWS_DEFAULT_REGION" --cli-input-json file:///opt/atlassian/pipelines/agent/build/task-definition.json
- pipe: atlassian/aws-code-deploy:1.1.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID_DEPLOY
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY_DEPLOY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
COMMAND: 'upload'
APPLICATION_NAME: "$CODEDEPLOY_APP_NAME"
DEPLOYMENT_GROUP: "$CODEDEPLOY_DG_NAME"
S3_BUCKET: "$CODEDEPLOY_S3_BUCKET_NAME"
FOLDER: "${S3_BUCKET_FOLDER}/${ENV_FULL_TYPE}"
BUNDLE_TYPE: 'YAML'
ZIP_FILE: 'appspec.yml'
VERSION_LABEL: 'appspec.yml'
- pipe: atlassian/aws-code-deploy:1.1.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID # Optional if already defined in the context.
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY # Optional if already defined in the context.
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION # Optional if already defined in the context.
COMMAND: 'deploy' # 'upload' or 'deploy'.
APPLICATION_NAME: "$CODEDEPLOY_APP_NAME"
DEPLOYMENT_GROUP: "$CODEDEPLOY_DG_NAME"
S3_BUCKET: "$CODEDEPLOY_S3_BUCKET_NAME"
FOLDER: "${S3_BUCKET_FOLDER}/${ENV_FULL_TYPE}"
BUNDLE_TYPE: 'YAML'
VERSION_LABEL: 'appspec.yml'
DEBUG: 'true'

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

185 views 2 4
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