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?