AWS Use the Override ECS Docker Command to Run Database Migrations Here's how to use the AWS command-line interface to run a database migration by leveraging a task definition for a service running on your ECS cluster.