ECS deploy -> how to stop running task


When I want to use Drone ECS Deploy plugin I got issue with existing - running task:

service-name was unable to place a task because no container instance met all of its requirements. The closest matching container-instance ID is already using a port required by your task.

Drone showing:

ERROR: New task definition not running within 600 seconds

How can I resolve this issue?

When I manually stopped this RUNNING task using AWS console and then I rebuild drone create new task with success.

image: joshdvir/drone-ecs-deploy
cluster: example-cluster
service: example-registry
image_name: example
aws_region: eu-west-1
timeout: “600”
max: “200”
min: “100”