Ensure AWS Lambda functions have tracing enabled
AWS Lambda functions should have TracingConfig enabled since it activates the AWS X-Ray service. AWS X-Ray service collects information on requests that a specific function performed. It reduces the investigation, debugging and diagnostics time and effort. The value can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with 'sampled=1'. If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision. It is recommended to use 'Active'.
Risk Level: Low
Cloud Entity: AWS Lambda
CloudGuard Rule ID: D9.CFT.OPE.02
Covered by Spectral: Yes
Category: Compute
GSL LOGIC
AWS_Lambda_Function should have TracingConfig.Mode='Active'
REMEDIATION
From CFT
Set AWS::Lambda::Function TracingConfig.Mode
property to be Active
References
AWS Lambda
AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume - there is no charge when your code is not running.
With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.
Compliance Frameworks
- AWS CloudFormation ruleset
Updated about 1 year ago