Unable to run task The validated string is empty
<p>I am trying to create as simple task for postgres sql on Amazon EC2 with the following JSON config:</p>

<pre><code>{
  "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"
}
</code></pre>

<p>But When I try to run this task, I get "<code>Unable to run task The validated string is empty</code>" as a response from the server.</p>

<p>Can someone please help me understand what I am missing here.</p>