title: How run Python script that it is in S3 using lambda
body: <p>I want to run a python code that I have in my S3 bucket using AWS lambda</p>
  
  <p>I tried with <code>os</code> library, but it have not worked out</p>
  
  <p>My code is:</p>
  
  <pre><code>from __future__ import print_function
  import os
  
  def lambda_handler(event, context):
      os.system('python https://s3.us-east-2.amazonaws.com/BUCKET/CODE.py')
  </code></pre>
  
  <p>I get the message "No such file or directory"</p>
  
  <p>I am using lambda because the code in python must be triggered when some event happends</p>
  
  <p>How can I run my code?</p>