je tourne juste un peu de l'environnement en utilisant EB avec Python 3.4 et Django, mais il échoue après, ressemble à l'erreur se produit lors de l'installation à l'aide pip install -r requirements.txt
ce sont les événements de la console Web:Beanstalk élastique avec python 3.4 encore en utilisant Python 2.7
Time Type Details
2017-10-06 20:22:39 UTC-0600 WARN Environment health has transitioned from Pending to Degraded. Command failed on all instances. Initialization completed 69 seconds ago and took 14 minutes.
2017-10-06 20:22:20 UTC-0600 ERROR Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
2017-10-06 20:21:17 UTC-0600 INFO Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
2017-10-06 20:21:17 UTC-0600 ERROR [Instance: i-0b46caf0e3099458c] Command failed on instance. Return code: 1 Output: (TRUNCATED)...) File "/usr/lib64/python2.7/subprocess.py", line 541, in check_call raise CalledProcessError(retcode, cmd) CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1. Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
2017-10-06 20:21:14 UTC-0600 ERROR Your requirements.txt is invalid. Snapshot your logs for details.
J'ai suivi ce tutoriel: sur django-elastic-beanstalk-django et deploying-a-django-app-and-postgresql-to-aws-elastic-beanstalk fois je suis bloqué à la même étape
utiliser le dernier AMI 2017-09 qui supportait Python 3 –
Comment puis-je utiliser un AMI dans Eb? –
Recherchez l'ID AMI que vous souhaitez utiliser. Ensuite, dans EB, remplacez l'ID AMI par défaut avec celui que vous voulez. –