Ravi Sir's Cards › AWS
run-task vs create-service
This comparison card contrasts run-task and create-service. run-task is described as once, then stops. create-service is described as always, keeps desired count. The card pairs run-task with batch jobs, migrations, and create-service with websites and APIs.
Read card text
What this card says
Runs
run-task
Once, then stops.
create-service
Always, keeps desired count.
Key points
No replacement on failure.
Replaces failed tasks, rolls updates.
Example
aws ecs run-task
Use when
Batch jobs, migrations.
Websites and APIs.