3
我想在Amazon EC2上創建的Postgres SQL作爲簡單的任務具有以下JSON配置:無法運行任務的驗證字符串爲空
{
"requiresAttributes": [],
"taskDefinitionArn": "arn:aws:ecs:us-east-1:870465292454:task-definition/Application:2",
"networkMode": "bridge",
"status": "ACTIVE",
"revision": 2,
"taskRoleArn": null,
"containerDefinitions": [
{
"volumesFrom": [],
"memory": 512,
"extraHosts": null,
"dnsServers": null,
"disableNetworking": null,
"dnsSearchDomains": null,
"portMappings": [
{
"hostPort": 5432,
"containerPort": 5432,
"protocol": "tcp"
}
],
"hostname": null,
"essential": true,
"entryPoint": null,
"mountPoints": [],
"name": "postgres",
"ulimits": null,
"dockerSecurityOptions": null,
"environment": [
{
"name": "POSTGRES_PASSWORD",
"value": "*******"
}
],
"links": [],
"workingDirectory": null,
"readonlyRootFilesystem": null,
"image": "postgres",
"command": null,
"user": null,
"dockerLabels": null,
"logConfiguration": null,
"cpu": 0,
"privileged": null,
"memoryReservation": null
}
],
"placementConstraints": [],
"volumes": [
{
"host": {
"sourcePath": "/var/lib/postgresql/data"
},
"name": "PGDATA"
}
],
"family": "Application"
}
但是當我嘗試運行這個任務,我得到作爲來自服務器的響應的「Unable to run task The validated string is empty
」。
有人可以幫助我瞭解我在這裏失蹤。