Amazon EC2 Container Service
Developer Guide (API Version 2014-11-13)

Updating a Task Definition

To update a task definition you create a task definition revision. Then if the task definition is used in a service, you can update that service to use it.

To create a task definition revision

  1. Open the Amazon ECS console at

  2. From the navigation bar, choose the Region that contains your task definition.

  3. In the navigation pane, choose Task Definitions.

  4. On the Task Definitions page, select the box to the left of the task definition you want to revise and then choose Create new revision.

  5. On the Create new revision of Task Definition page, make the changes you want. For example, if you want to change the existing container definitions (such as the container image, memory limits, or port mappings), select the Container Name to make the changes and then choose Update.

  6. Verify the information and then choose Create.

  7. If your task definition is used in a service, update your service with the updated task definition. See Updating a Service.