Hi @[deleted] . Thanks for suggesting that. Can you please describe your use case so we can better understand the requirement and improve the pipe. In particular, we'd like to know why you need to do a forced deploy. As of now the aws-ecs-deploy pipe creates a new task definition every time, so it seems like the forced deployment isn't required.
Hi,
The way we are doing our deployment is that we have a task definition set for our production which uses an image in AWS ECR. When we have a new build we update that same image and then we need to deploy it to the same task definition. Looking at the ECS api the only way to have same task definition pull the image again is to use force deploy. This can be done via the console or the cli which we are doing in our pipelines now (aws ecs update-service --cluster $AWS_ECS_CLUSTER --service $AWS_ECS_SERVICE --force-new-deployment). ECS will then take each instance of task and update with new images. I hope that makes sense.
Arash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alexander Zhukov ,
Is this possible on current version of Bitbucket Pipeline script?
If possible then how?
Regards,
Hiromi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Hiromi , currently, the pipe registers a new task definition every time you run in, so the new deployment is always triggered and the new image will be pulled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alexander Zhukov I have similar requirement, where i need to execute following:
aws ecs update-service --cluster $AWS_ECS_CLUSTER_ARN --service $AWS_ECS_SERVICE_NAME --force-new-deployment
Do you have any updates, thanks in advance.
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.