title: How to import own module within aws lambda function
body: <p>I am trying to import my own module but I am getting error:</p>
  <pre><code>Unable to import module 'lambda_function': attempted relative import with no known parent package
  </code></pre>
  <p><code>lambda_function.py</code></p>
  <p><a href="https://i.stack.imgur.com/H67nZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H67nZ.png" alt="enter image description here" /></a></p>
  <p>Own module<code>name.py</code></p>
  <p><a href="https://i.stack.imgur.com/8tTx0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8tTx0.png" alt="enter image description here" /></a></p>