Updating an Amazon ECS task definition using the 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
-
Infrastructure requirements
-
Task size
-
Container size
-
Task role
-
Task execution role
-
Volumes and container mount points
-
Private registry
You can have the AWS assistant provide recommendations when you use the JSON editor. For more information, see Using AWS assistant to provide task definition recommendations in the Amazon ECS console
JSON validation
The Amazon ECS console JSON editor validates the following in the JSON file:
-
The file is a valid JSON file
-
The file does not contain any extraneous keys
-
The file contains the
familyNameparameter -
There is at least one entry under
containerDefinitions