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

질문됨 2달 전154회 조회
1개 답변
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
지원 엔지니어
답변함 2달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠