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

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ