Updating a task definition using the classic console - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Updating a task definition using the classic console

A task definition revision is a copy of the current task definition with the new parameter values replacing the existing ones. All parameters that you do not modify are in the new revision.

To update a task definition, create a task definition revision. If the task definition is used in a service, you must update that service to use the updated task definition.

To create a task definition revision

  1. Open the Amazon ECS console at https://console.amazonaws.cn/ecs/.

  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 to revise and choose Create new revision.

  5. On the Create new revision of task definition page, make changes. For example, to change the existing container definitions (such as the container image, memory limits, or port mappings), select the container, make the changes, and then choose Update.

  6. Verify the information and choose Create.

  7. If your task definition is used in a service, update your service with the updated task definition. For more information, see Updating a service.