title: Unable to create environment in AWS Elastic Beanstalk?
body: <p>I Made a small Django app; I want to deploy it on AWS. I followed the commands <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html" rel="nofollow">here</a> . Now when I do <code>eb create</code> it fails saying    </p>
  
  <p><code>ERROR: Your requirements.txt is invalid. Snapshot your logs for details.
  ERROR: [Instance: i-05fde0dc] Command failed on instance. Return code: 1 Output: (TRUNCATED)...)
    File "/usr/lib64/python2.7/subprocess.py", line 540, 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.
  INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].</code></p>
  
  <p>Detailed logs are <a href="http://pastebin.com/RUcidrjE" rel="nofollow">here</a>. My database in postgresql, for that do I have to run separate RDS instance ?<br>
  My config.yml<br>
  <code>branch-defaults:
    master:
      environment: feedy2-dev
      group_suffix: null
  global:
    application_name: feedy2
    default_ec2_keyname: aws-eb
    default_platform: Python 2.7
    default_region: us-west-2
    profile: eb-cli
    sc: git
  </code><br>
  My 01-django-eb.config  </p>
  
  <pre><code>option_settings:
    "aws:elasticbeanstalk:application:environment":
      DJANGO_SETTINGS_MODULE: "feedy2.settings"
      PYTHONPATH: "/opt/python/current/app/feedy2:$PYTHONPATH"
    "aws:elasticbeanstalk:container:python":
      WSGIPath: "feedy2/feedy2/wsgi.py"
  
  container_commands:
    01_migrate:
      command: "django-admin.py migrate"
      leader_only: true
  </code></pre>
  
  <p>My directory structure :
  <code>.
  ├── feedy2
  │   ├── businesses
  │   │   
  │   ├── customers
  │   │ 
  │   ├── db.sqlite3
  │   ├── feedy2
  │   │   ├── __init__.py
  │   │   ├── __init__.pyc
  │   │   ├── settings.py
  │   │   ├── settings.pyc
  │   │   ├── urls.py
  │   │   ├── urls.pyc
  │   │   ├── wsgi.py
  │   │   └── wsgi.pyc
  │   ├── manage.py
  │   ├── questions
  │   │   
  │   ├── static
  │   ├── surveys
  │   └── templates
  ├── readme.md
  └── requirements.txt</code></p>