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

posta 2 mesi fa154 visualizzazioni
1 Risposta
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
TECNICO DI SUPPORTO
con risposta 2 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande