AWS ElasticBeanstalk container_commands: Commands trigger errors even if they were correct

I have a django project that I want to deploy with ElasticBeanstalk, I defined a [xxxx.config] file in .ebextensions, the content of the file is:

xxxx.config

container_commands:
  acvenv:
    command: "source /var/app/venv/*/bin/activate"
  migrate:
    command: "python /var/app/current/manage.py migrate"

But the project doesn't deploy unless I remove xxxx.config.

I follow the documentation:

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html

What am I doing wrong?

Back to Top