aws ecs update-container-agent
Updates the Amazon ECS container agent on a specified container instance. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To update the container agent on an Amazon ECS container instance
The following update-container-agent example updates the container agent on the specified container instance in the default cluster.
aws ecs update-container-agent --cluster default --container-instance a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--clusterThe short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on.--container-instanceThe container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.Its output
{
"containerInstance": {
"status": "ACTIVE",
"agentUpdateStatus": "PENDING",
"versionInfo": {
"agentVersion": "1.0.0",
"agentHash": "4023248",
"dockerVersion": "DockerVersion: 1.5.0"
}
}
}For more information, see Updating the Amazon ECS container agent in the Amazon ECS Developer Guide.
Options
--clusterThe short name or full Amazon Resource Name (ARN) of the cluster that your container instance is running on.--container-instanceThe container instance ID or full ARN entries for the container instance where you would like to update the Amazon ECS container agent.