Describes a task definition. You can specify a family and revision to find information about a specific task definition, or you can simply specify the family to find the latest ACTIVE revision in that family.
You can only describe INACTIVE task definitions while an active task or service references them.
post/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.DescribeTaskDefinition
Headers
X-Amz-Target'AmazonEC2ContainerServiceV20141113.DescribeTaskDefinition' required
Request body
Response
Success
Example response
{
"taskDefinition": {
"containerDefinitions": [
{
"name": "wordpress",
"cpu": 10,
"environment": [],
"essential": true,
"image": "wordpress",
"links": [
"mysql"
],
"memory": 500,
"mountPoints": [],
"portMappings": [
{
"containerPort": 80,
"hostPort": 80
}
],
"volumesFrom": []
},
{
"name": "mysql",
"cpu": 10,
"environment": [
{
"name": "MYSQL_ROOT_PASSWORD",
"value": "password"
}
],
"essential": true,
"image": "mysql",
"memory": 500,
"mountPoints": [],
"portMappings": [],
"volumesFrom": []
}
],
"family": "hello_world",
"revision": 8,
"taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/hello_world:8",
"volumes": []
}
}