title: AWS Lambda returns "Unable to import module"
body: <p>I am running the AWS DevSecOps project present <a href="https://aws.amazon.com/blogs/devops/implementing-devsecops-using-aws-codepipeline/" rel="nofollow noreferrer">here</a>:</p>
  
  <p>In the <code>StaticCodeAnalysis</code> stage of the pipeline I am getting AWS Lambda function failed.  </p>
  
  <p>On checking the log the error is:</p>
  
  <blockquote>
    <p>"Unable to import module <code>cfn_validate_lambda</code>: No module named cfn_validate_lambda".</p>
  </blockquote>
  
  <p>I checked that the S3 bucket that has the python code Zip and also ensured that the zip file has <code>Public</code> in the permissions.</p>
  
  <p>Please let me know how to resolve this.  </p>
  
  <p>Thanks.</p>