Prisma Cloud Compute: How to resolve "Error: Failed to find Twistlock config" on Lambda Layer
3813
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:
Additional Information
For Additional information, please follow this documentation