So I\'m trying to deploy a dockerfile on Elastic Beanstalk, but I can\'t get past this error - \"jq: error: Cannot iterate over null\".
Successfully built [
The problem is that your Dockerrun.aws.json file is missing the Volumes property.
The 04pre.sh script uses the jq tool in order to query the JSON file.
Specifically, it runs the following command on your file, which yields to an error:
$ jq -c '.Volumes[] | [.HostDirectory, .ContainerDirectory]' < Dockerrun.aws.json
jq: error: Cannot iterate over null
Specifying an empty "Volumes" array should resolve the error.