502 Bad Gateway AWS Python

В последнее время я начал изучать, как разместить веб-приложение Django на AWS Elastic Beanstalk, и я получаю 502 Bad Gateway Error. Состояние здоровья среды приложения тяжелое.

Мне очень нужна помощь, как я могу это сделать, заранее спасибо.

enter image description here

Вот все файлы, включенные в проект

enter image description here

Код в конфигурационных файлах AWS Elastic Beanstalk.

django.config

option_settings:
  aws:elasticbeanstalk:container:python:
    WSGIPath: anapp/wsgi.py

anapp-dev.env.yml

config.yml

branch-defaults:
  default:
    environment: anapp-dev
    group_suffix: null
global:
  application_name: anapp
  branch: null
  default_ec2_keyname: shopit
  default_platform: Python 3.8 running on 64bit Amazon Linux 2
  default_region: af-south-1
  include_git_submodules: true
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: eb-cli
  repository: null
  sc: null
  workspace_type: Application
Вернуться на верх