Unable to add container commands for elastic beanstalk deployment

0

I have a django web app hosted via elastic beanstalk

Due to the fact that ./platform/hooks/postdeploy migrate command seems to no longer be working (https://repost.aws/questions/QUciLyPjuLThyZ-uLafausLg/elastic-beanstalk-database-migrations-no-longer-running) I have tried to use container commands in my django.config file instead

container_commands:
  00_test_output:
    command: "echo 'testing.....'"
  01_migrate:
    command: "source /var/app/venv/staging-LQM1lest/bin/activate && python manage.py migrate --noinput"
    leader_only: true

This, however, provokes the error on deployment:

2022-05-25 08:03:36    WARN    LoadBalancer awseb-e-g-AWSEBLoa-Q8MLS7VPZA00 could not be found.
2022-05-25 08:03:36    ERROR   Failed to deploy application.        
                                                                      
ERROR: ServiceError - Failed to deploy application.

This error occurs even if only the 00_test_output command is included. Does anyone have an idea as to why the loadbalancer cannot be found when container commands are added?

질문됨 2년 전102회 조회
답변 없음

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

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

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

관련 콘텐츠