I am running an ECS Fargate service with deploymentController
as CODE_DEPLOY
.
Now, when I --force-new-deployment
using aws cli.
AWS CLI Command
aws ecs update-service --cluster my-cluster --service my-service --force-new-deployment
I get following error.
An error occurred (InvalidParameterException) when calling the UpdateService operation: Cannot force a new deployment on services with a CODE_DEPLOY deployment controller. Use AWS CodeDeploy to trigger a new deployment.
Even in the docs it's not mentioned regariding teh update scenarios https://docs.aws.amazon.com/cli/latest/reference/ecs/update-service.html Is there any workaround this?