title: Serverless Framework - useDotenv is not loading env file in AWS
body: <p>I'm using the useDotenv property on my serverless.yml but it is not loading in AWS:</p>
  <pre><code>org: xyz
  app: route-learner
  service: route-learner-cron
  frameworkVersion: '3'
  
  useDotenv: true
  
  provider:
    name: aws
    runtime: python3.8
    stage: ${opt:stage, 'dev'}
  
  functions:
    extract_route:
      handler: src.functions.extract_route.run
      events:
        # Invoke Lambda function at every 5th minute.
        - schedule:
            rate: cron(5,15,25,35,45,55 * * * ? *)
      vpc:
        securityGroupIds:
          - ...
        subnetIds:
          - ...
  
  plugins:
    - serverless-python-requirements
  
  custom:
    pythonRequirements:
      dockerizePip: true
  </code></pre>
  <p>I have in the root directory a .env.prod file with the following:</p>
  <pre><code>DB_URI=my_db_url
  DB_VERBOSE=True
  </code></pre>
  <p>I'm deploying the function with the command:</p>
  <pre><code>serverless deploy --stage prod --verbose
  </code></pre>
  <p>Once the function is called, I see the following error:</p>
  <pre><code>[ERROR] KeyError: 'DB_URI'
  Traceback (most recent call last):
    File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 144, in wrapped_handler
      return user_handler(event, context)
    File &quot;/var/task/s_extract_route.py&quot;, line 25, in error_handler
      raise e
    File &quot;/var/task/s_extract_route.py&quot;, line 20, in &lt;module&gt;
      user_handler = serverless_sdk.get_user_handler('src.functions.extract_route.run')
    File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 56, in get_user_handler
      user_module = import_module(user_module_name)
    File &quot;/var/lang/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 961, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked
    File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 843, in exec_module
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;/var/task/src/functions/__init__.py&quot;, line 8, in &lt;module&gt;
      from src.db import engine
    File &quot;/var/task/src/db.py&quot;, line 4, in &lt;module&gt;
      DATABASE_URI = os.environ['DB_URI']
    File &quot;/var/lang/lib/python3.8/os.py&quot;, line 675, in __getitem__
      raise KeyError(key) from None
  [ERROR] KeyError: 'DB_URI' Traceback (most recent call last):   File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 144, in wrapped_handler     return user_handler(event, context)   File &quot;/var/task/s_extract_route.py&quot;, line 25, in error_handler     raise e   File &quot;/var/task/s_extract_route.py&quot;, line 20, in &lt;module&gt;     user_handler = serverless_sdk.get_user_handler('src.functions.extract_route.run')   File &quot;/var/task/serverless_sdk/__init__.py&quot;, line 56, in get_user_handler     user_module = import_module(user_module_name)   File &quot;/var/lang/lib/python3.8/importlib/__init__.py&quot;, line 127, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 961, in _find_and_load_unlocked   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1014, in _gcd_import   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 991, in _find_and_load   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 975, in _find_and_load_unlocked   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 671, in _load_unlocked   File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 843, in exec_module   File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed   File &quot;/var/task/src/functions/__init__.py&quot;, line 8, in &lt;module&gt;     from src.db import engine   File &quot;/var/task/src/db.py&quot;, line 4, in &lt;module&gt;     DATABASE_URI = os.environ['DB_URI']   File &quot;/var/lang/lib/python3.8/os.py&quot;, line 675, in __getitem__     raise KeyError(key) from None
  </code></pre>
  <p>What is missing in my serverless configuration?</p>