Difference between revisions of "Aws ecs describe-task-definition"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
aws ecs describe-task-definition --task-definition hello_world | aws ecs describe-task-definition --task-definition hello_world | ||
+ | == Official output == | ||
+ | <pre> | ||
+ | { | ||
+ | "taskDefinition": { | ||
+ | "volumes": [], | ||
+ | "taskDefinitionArn": "arn:aws:ecs:us-west-2:123456789012:task-definition/hello_world:8", | ||
+ | "containerDefinitions": [ | ||
+ | { | ||
+ | "environment": [], | ||
+ | "name": "wordpress", | ||
+ | "links": [ | ||
+ | "mysql" | ||
+ | ], | ||
+ | "mountPoints": [], | ||
+ | "image": "wordpress", | ||
+ | "essential": true, | ||
+ | "portMappings": [ | ||
+ | { | ||
+ | "containerPort": 80, | ||
+ | "hostPort": 80 | ||
+ | } | ||
+ | ], | ||
+ | "memory": 500, | ||
+ | "cpu": 10, | ||
+ | "volumesFrom": [] | ||
+ | }, | ||
+ | { | ||
+ | "environment": [ | ||
+ | { | ||
+ | "name": "MYSQL_ROOT_PASSWORD", | ||
+ | "value": "password" | ||
+ | } | ||
+ | ], | ||
+ | "name": "mysql", | ||
+ | "mountPoints": [], | ||
+ | "image": "mysql", | ||
+ | "cpu": 10, | ||
+ | "portMappings": [], | ||
+ | "memory": 500, | ||
+ | "essential": true, | ||
+ | "volumesFrom": [] | ||
+ | } | ||
+ | ], | ||
+ | "family": "hello_world", | ||
+ | "revision": 8 | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
Revision as of 13:16, 12 May 2022
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ecs/describe-task-definition.html
aws ecs describe-task-definition --task-definition hello_world:8 aws ecs describe-task-definition --task-definition hello_world
Official output
{ "taskDefinition": { "volumes": [], "taskDefinitionArn": "arn:aws:ecs:us-west-2:123456789012:task-definition/hello_world:8", "containerDefinitions": [ { "environment": [], "name": "wordpress", "links": [ "mysql" ], "mountPoints": [], "image": "wordpress", "essential": true, "portMappings": [ { "containerPort": 80, "hostPort": 80 } ], "memory": 500, "cpu": 10, "volumesFrom": [] }, { "environment": [ { "name": "MYSQL_ROOT_PASSWORD", "value": "password" } ], "name": "mysql", "mountPoints": [], "image": "mysql", "cpu": 10, "portMappings": [], "memory": 500, "essential": true, "volumesFrom": [] } ], "family": "hello_world", "revision": 8 } }
Without task definition
aws ecs describe-task-definition usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters] To see help text, you can run: aws help aws <command> help aws <command> <subcommand> help aws: error: the following arguments are required: --task-definition
Related
See also
- 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 ]
- Amazon ECS, Service, Tasks (Task overview), capacity providers, Cluster Auto Scaling (CAS),
aws ecs, ecs-cli, ~/.ecs/config
, AWS Copilot, AWS Fargate, AWS CloudWatch Container Insights,/etc/ecs/ecs.config
, Security group (SG), container agent, task definition, Amazon ECS events, best practices, Amazon ECS Exec Checker, Amazon ECS Agent, Service Connect,AWSServiceRoleForECS
, Terraform ECS, AWS ECS Rolling deployments
Advertising: