Prisma Cloud Compute:如何解决 Lambda 层上的“错误:无法找到 Twistlock 配置”
4589
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版本
- Prisma Cloud Compute 自托管版本
- AWS Lambda
Procedure
此错误表明您的 Lambda 层的环境变量没有TW_POLICY 环境变量,您应该包含此变量来解决 Twistlock 配置错误。
请参考以下屏幕截图在 AWS Lambda 控制台中添加 TW_POLICY 环境变量:
Additional Information
如需更多信息,请关注此文档