Trigger AWS ECS service restart using force new deployment.
pip install boto3
pip install fire
python ecsServiceRestart.py restart --services="app app2" --cluster=test
Or docker
docker build -t ecs-service-restart .
docker run \
-e AWS_DEFAULT_REGION='us-east-1' \
-e AWS_ACCESS_KEY_ID='xxxx' \
-e AWS_SECRET_ACCESS_KEY='xxxx' \
-it ecs-service-restart python ecsServiceRestart.py restart --services="app app2" --cluster=test