我的任务处于“待处理”状态
这就是我从事件中看到的
服务事件中没有太多信息。
这是 JSON 格式的任务定义
{
"requiresAttributes": [
{
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.17",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.ecr-auth",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.task-iam-role",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.task-iam-role-network-host",
"targetId": null,
"targetType": null
},
{
"value": null,
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19",
"targetId": null,
"targetType": null
}
],
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-2:1234567890:task-definition/SQ1-queuetest:1",
"networkMode": "host",
"status": "ACTIVE",
"revision": 1,
"taskRoleArn": "arn:aws:iam::1234567890:role/play-ecs",
"containerDefinitions": [
{
"volumesFrom": [],
"memory": 256,
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"portMappings": [],
"hostname": null,
"essential": true,
"entryPoint": null,
"mountPoints": [],
"name": "sq1",
"ulimits": null,
"dockerSecurityOptions": null,
"environment": [
{
"name": "ENV",
"value": "test"
}
],
"links": null,
"workingDirectory": "/app/src/",
"readonlyRootFilesystem": null,
"image": "1234567890.dkr.ecr.ap-southeast-2.amazonaws.com/simplequeue:latest",
"command": [
"python /app/src/main.py"
],
"user": null,
"dockerLabels": null,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "simplequeue",
"awslogs-region": "ap-southeast-2",
"awslogs-stream-prefix": "sq1"
}
},
"cpu": 512,
"privileged": null,
"memoryReservation": null
}
],
"placementConstraints": [],
"volumes": [],
"family": "SQ1-queuetest"
}
我如何才能进一步了解任务启动失败的原因?