Prisma Cloud Compute: How to resolve "Error: Failed to find Twistlock config" on Lambda Layer

Prisma Cloud Compute: How to resolve "Error: Failed to find Twistlock config" on Lambda Layer

4557
Created On 10/27/23 20:49 PM - Last Modified 04/30/25 20:21 PM


Objective


The objective of this article is to successfully install Serverless defender on AWS Lambda Layer and how to avoid following error while installing serverless defender.
[Twistlock] ERROR [TID:8] Failed to find Twistlock config

 


Environment


  • Prisma Cloud Compute SaaS version
  • Prisma Cloud Compute Self-Hosted version
  • AWS Lambda


Procedure


This error indicates that Environment Variable of your Lambda layer do not have TW_POLICY env variable, You should have to include this variable to resolve Twistlock Config error.
Please refer to the following screenshot to add TW_POLICY env variable in AWS Lambda Console:

Screenshot from AWS Console


Additional Information


For Additional information, please follow this documentation



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000Xh4KCAS&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language