Deploy docker on AWS beanstalk with docker composer

I had a similar problem and it turned out that I archived the containing folder directly in my Archive.zip file, thus giving me this structure in the Archive.zip file:

RootFolder
    - Dockerrun.aws.json
    - Other files...

It turned out that by archiving only the RootFolder's content (and not the folder itself), Amazon Beanstalk recognized the ECS Task Definition file.

Hope this helps.


For me, it was simply a case of ensuring the name of the file matched the exact casing as described in the AWS documentation.

dockerfile.aws.json had to be exactly Dockerfile.aws.json


Similar problem. What fixed it for me was using the CLI tools instead of zipping myself, just running eb deploy worked.


For me codecommit was no. Then after adding the Dockerrun.aws.json in git it works.