Amazon ECS
User Guide for AWS Fargate (API Version 2014-11-13)

Updating a Task Definition

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.aws.amazon.com/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.