Using Console
Using CLI
Using Python
list_tasks
API of ECS.
describe_tasks
API of ECS for this purpose.
describe_task_definition
API of ECS to get the task definition.
register_task_definition
API of ECS to update the task definition.
update_service
API of ECS to update the service associated with the task.
your_cluster_name
and your_service_name
with your actual ECS cluster and service names. Also, ensure that you have the necessary IAM permissions to perform these actions.