Updating a task definition - Amazon Elastic Container Service

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.