aws ecs delete-attributes
Deletes one or more custom attributes from an Amazon ECS resource. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete one or more custom attributes from an Amazon ECS resource
The following delete-attributes example deletes an attribute with the name stack from a container instance.
aws ecs delete-attributes --attributes name=stack,targetId=arn:aws:ecs:us-west-2:123456789012:container-instance/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Identify--attributesThe attributes to delete from your resource.Its output
{
"attributes": [
{
"name": "stack",
"targetId": "arn:aws:ecs:us-west-2:123456789012:container-instance/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"value": "production"
}
]
}For more information, see Define which container instances Amazon ECS uses for tasks in the Amazon ECS Developer Guide.
Options
--attributesThe attributes to delete from your resource.--clusterThe short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete attributes.