Updating a task definition using the new 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 new 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.

When you create a revision, you can modify the following container properties and environment properties.

  • Container image URI

  • Port mappings

  • Environment variables

  • Task size

  • Container size

To create a task definition revision (New Amazon ECS console)

  1. Open the new console at https://console.amazonaws.cn/ecs/v2.

  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, choose the task, and then choose Create new revision.

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

  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. For more information, see Updating a service.