Adding 'container_commands' to Elasticbeanstalk project fails deployment

0

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

And

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html

asked 2 months ago146 views
1 Answer
0

Hello MABAASHAR,

I understand that you tried to deploy your application source bundle to your Elastic Beanstalk environment but had a problem to deploy your app with the .ebextensions configuration file above.

To help you trouble your issue, It is necessary to check event records from your Elastic Beanstalk environment.

Can you share the event records from your Elastic Beanstalk environment?

Or you can join AWS Support Plans and get professional support from AWS Premium Support

I hope you have a great day.

Myungsup Kwak from AWS Premium Support

profile pictureAWS
SUPPORT ENGINEER
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions