title: Environment properties are not passed to application in Elastic Beanstalk
body: <p>When deploying my Django project, database settings are not configured because <code>'RDS_HOSTNAME' in os.environ</code> returns <code>false</code>. In fact not environment properties are available at the time of deployment. All these properties are available after the deployment.</p>
  <p>Running <code>/opt/elasticbeanstalk/bin/get-config environment</code> returns following:</p>
  <pre><code>{&quot;DJANGO_SETTINGS_MODULE&quot;:&quot;myApp.settings&quot;,&quot;PYTHONPATH&quot;:&quot;/var/app/venv/staging-LQM1lest/bin:$PYTHONPATH&quot;,&quot;RDS_DB_NAME&quot;:&quot;ebdb&quot;,&quot;RDS_HOSTNAME&quot;:&quot;xxxx.amazonaws.com&quot;,&quot;RDS_PASSWORD&quot;:&quot;xxxx&quot;,&quot;RDS_PORT&quot;:&quot;xxxx&quot;,&quot;RDS_USERNAME&quot;:&quot;xxxx&quot;}
  </code></pre>
  <p>All RDS prefixed properties are set but still somehow <code>os.environ</code> is unable to read it.</p>
  <p><code>setting.py</code> file:</p>
  <pre><code># [...]
  
  if 'RDS_HOSTNAME' in os.environ:
      DATABASES = {
          'default': {
              'ENGINE': 'django.db.backends.mysql',
              'NAME': os.environ['RDS_DB_NAME'],
              'USER': os.environ['RDS_USERNAME'],
              'PASSWORD': os.environ['RDS_PASSWORD'],
              'HOST': os.environ['RDS_HOSTNAME'],
              'PORT': os.environ['RDS_PORT'],
          }
      }
  
  # [...]
  </code></pre>
  <p>Do I have to make any changes to make these properties available at the time of deployment?</p>