Difference between revisions of "Aws ecs list-task-definitions"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
  
 
  aws ecs list-[[task-definitions]]
 
  aws ecs list-[[task-definitions]]
 +
 +
aws ecs list-task-definitions | grep arn  | cut -d"/" -f2 | cut -d'"' -f1
  
  
Line 16: Line 18:
 
     ]
 
     ]
 
  }
 
  }
 +
 +
 +
 +
{{describe aws ecs list-task-definitions}}
 +
  
 
== Related ==
 
== Related ==

Latest revision as of 19:54, 29 May 2023

aws ecs list-task-definitions
aws ecs list-task-definitions | grep arn  | cut -d"/" -f2 | cut -d'"' -f1


aws ecs list-task-definitions
{
    "taskDefinitionArns": [
        "arn:aws:ecs:us-west-2:123456789012:task-definition/sleep300:2",
        "arn:aws:ecs:us-west-2:123456789012:task-definition/sleep360:1",
        "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:3",
        "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:4",
        "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:5",
        "arn:aws:ecs:us-west-2:123456789012:task-definition/wordpress:6"
    ]
}


 for TASK in $(aws ecs list-task-definitions | grep arn  | cut -d"/" -f2 | cut -d'"' -f1); do aws ecs describe-task-definition --task-definition $TASK; done


Related[edit]

See also[edit]

Advertising: