<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517863#M744</link>
    <description>&lt;P&gt;Here are some hints...&lt;/P&gt;
&lt;P&gt;the language is python.&lt;/P&gt;
&lt;P&gt;the lambda's entry point is a module named twistlock with a method named handler().&lt;/P&gt;
&lt;P&gt;its likely that the lambda function's file should be named twistlock.py&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 20:17:55 GMT</pubDate>
    <dc:creator>TommyHunt</dc:creator>
    <dc:date>2022-10-13T20:17:55Z</dc:date>
    <item>
      <title>Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recent ca</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/404799#M378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are getting the following error in our Lambdas,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;After troubleshooting, our team identifies that is due Prisma Defender, apparently the lambda handler was changed to twistlock.handler.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 18:13:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/404799#M378</guid>
      <dc:creator>SPerry5</dc:creator>
      <dc:date>2022-10-19T18:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/511689#M581</link>
      <description>&lt;P&gt;Greetings SPerry5,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that this note finds you well! I know that it has been a while since you had posted this question but I wanted to see if you still potentially needed any help. Thank you for your time and I hope that you have a good remainder of your day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;J. Avery King&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 14:20:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/511689#M581</guid>
      <dc:creator>AKing9</dc:creator>
      <dc:date>2022-08-12T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517555#M728</link>
      <description>&lt;P&gt;We are also having the same issue,, Can we know the cause of this error message?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 04:53:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517555#M728</guid>
      <dc:creator>AmyYoon</dc:creator>
      <dc:date>2022-10-12T04:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517858#M743</link>
      <description>&lt;P&gt;Hi Amy,&lt;/P&gt;
&lt;P&gt;I have started to research this so I can try to assist.&lt;/P&gt;
&lt;P&gt;Could you please answer the following?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Was the function working prior to adding the defender? We need to be certain that there are no issues here first.&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;&lt;SPAN&gt;How did you configure protection? (three options: auto-defend, manual embedding, adding a layer)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3) What programming/scripting language is the function?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) Are you able to share the function with us for testing or some sanitized version without proprietary data / code, etc ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 19:04:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517858#M743</guid>
      <dc:creator>CloudEngineer</dc:creator>
      <dc:date>2022-10-13T19:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517863#M744</link>
      <description>&lt;P&gt;Here are some hints...&lt;/P&gt;
&lt;P&gt;the language is python.&lt;/P&gt;
&lt;P&gt;the lambda's entry point is a module named twistlock with a method named handler().&lt;/P&gt;
&lt;P&gt;its likely that the lambda function's file should be named twistlock.py&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 20:17:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517863#M744</guid>
      <dc:creator>TommyHunt</dc:creator>
      <dc:date>2022-10-13T20:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517894#M746</link>
      <description>&lt;P&gt;Hello Brandon.&lt;/P&gt;
&lt;P&gt;Here is the answers below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Was the function working prior to adding the defender? We need to be certain that there are no issues here first.&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;A : Yes, the function was working fine before we added the defender.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2) How did you configure protection? (three options: auto-defend, manual embedding, adding a layer)&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;A : We used the auto-defend configure.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3) What programming/scripting language is the function?&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;A : It is python.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;4) Are you able to share the function with us for testing or some sanitized version without proprietary data / code, etc ?&lt;BR /&gt;&lt;STRONG&gt;&amp;gt;A : I have already shared this through Support case.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you kindly check this.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Amy Yoon&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 05:21:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517894#M746</guid>
      <dc:creator>AmyYoon</dc:creator>
      <dc:date>2022-10-14T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517895#M747</link>
      <description>&lt;P&gt;Hello Tommy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for the hint.!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will check this once more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Amy Yoon&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 00:34:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517895#M747</guid>
      <dc:creator>AmyYoon</dc:creator>
      <dc:date>2022-10-14T00:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517953#M751</link>
      <description>&lt;P&gt;Hi Amy, if you could share the case number then I can follow up with TAC.&lt;/P&gt;
&lt;P&gt;Since you are using AutoDefend, can you please share the IAM policy attached to the role or IAM user being used for the AWS Cloud credentials? If that's already in the case, I can look there instead. That would also be something important to add to the case if they haven't asked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 14:37:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/517953#M751</guid>
      <dc:creator>CloudEngineer</dc:creator>
      <dc:date>2022-10-14T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518026#M755</link>
      <description>&lt;P&gt;Hello Brandon.&lt;/P&gt;
&lt;P&gt;Our Case Number is 02344132.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't upload the&lt;SPAN&gt;&amp;nbsp;IAM policy attached to the IAM user but already checked the it before and the&amp;nbsp;required permission was attached well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Amy Yoon&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 01:16:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518026#M755</guid>
      <dc:creator>AmyYoon</dc:creator>
      <dc:date>2022-10-17T01:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518738#M760</link>
      <description>&lt;P&gt;HI Amy,&lt;/P&gt;
&lt;P&gt;I had a look at the case and I can see that it has been successfully escalated so the best thing to do at this time is to stay in touch with TAC when the case is updated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 15:48:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518738#M760</guid>
      <dc:creator>CloudEngineer</dc:creator>
      <dc:date>2022-10-21T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma cloud[ERROR] Runtime.ImportModuleError: Unable to import module 'twistlock': Failed to import module: lambda_function Traceback (most recen</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518743#M761</link>
      <description>&lt;P&gt;Amy and Brandon,&lt;/P&gt;
&lt;P&gt;From what I recall,&amp;nbsp; when Prisma Cloud instruments a lambda with a defender, Prisma changes the entry point for the lambda, in other words, it changes the "handler" function name in the lambda console properties.&amp;nbsp; So, look at the lambda properties panel in the AWS lambda console, find the function name, typically, handler() then look to see if the function name matches the name of the "handler" function in the source file.&amp;nbsp; Then fix one or the other to match. Now, the source file is NOT the original source-file.&lt;/P&gt;
&lt;P&gt;The reason that prisma "renames" the "handler" function is because prisma introduces a new lambda file; the purpose of that lambda file is defend the original lambda function; think of it liek a wrapper around the original lambda function; that new lambda file is your new entry point, aka handler function name, that must agree with the lambda console's lambda properties/function_name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 16:23:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-error-runtime-importmoduleerror-unable-to-import/m-p/518743#M761</guid>
      <dc:creator>TommyHunt</dc:creator>
      <dc:date>2022-10-21T16:23:58Z</dc:date>
    </item>
  </channel>
</rss>

