Difference between revisions of "Aws ecs list-task-definitions"
Jump to navigation
Jump to search
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | * https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/list-task-definitions.html | ||
+ | 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" | ||
+ | ] | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | {{describe aws ecs list-task-definitions}} | ||
== Related == | == Related == | ||
− | * <code>[[aws ecs list-tasks]]</code> | + | * <code>[[aws ecs list-tasks]] --cluster YOUR_CLUSTER_NAME</code> |
+ | * <code>[[aws ecs list-clusters]]</code> | ||
+ | * <code>[[aws ecs describe-task-definition --task-definition]] my-hello_world-task-definition</code> | ||
== See also == | == See also == | ||
+ | * {{aws ecs tasks}} | ||
* {{aws ecs}} | * {{aws ecs}} | ||
[[Category:AWS]] | [[Category:AWS]] |
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]
aws ecs list-tasks --cluster YOUR_CLUSTER_NAME
aws ecs list-clusters
aws ecs describe-task-definition --task-definition my-hello_world-task-definition
See also[edit]
- AWS ECS tasks:
aws ecs [ list-tasks | list-task-definitions | describe-task-definition | register-task-definition ], ContainerDefinitions, AmazonECSTaskExecutionRolePolicy
- AWS ECS:
aws ecs [ create-cluster | create-service | update-service | list-clusters | list-services | describe-cluster | describe-services | describe-tasks | put-account-setting | execute-command | run-task ]
Advertising: