AWS CLI ECR and ECS Cheat Sheet/Force a new ECS deployment

Restart service tasks using the current task definition.

Section: ECS Clusters and Services

Force a new ECS deployment

bash
bash
aws ecs update-service --cluster my-cluster --service my-service --force-new-deployment
Explanation

Useful after a new image tag is made available in-place.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing ECS Clusters and Services
List services in a cluster
Show ECS service ARNs for a cluster.
OpenIn sheetbashsame section
Describe services
Inspect ECS service desired count, task definition, and deployment status.
OpenIn sheetbashsame section
Delete an ECS service
Remove an ECS service after scaling it down or forcing deletion.
OpenIn sheetbashsame section
List ECS clusters
Show cluster ARNs in the account and region.
OpenIn sheetbashsame section
Describe clusters
Inspect ECS cluster status and settings.
OpenIn sheetbashsame section
Create an ECS cluster
Create a new ECS cluster.
OpenIn sheetbashsame section