LOW
Source
Trivy
ID
AVD-AWS-0125

SAM Function must have X-Ray tracing enabled

X-Ray tracing enables end-to-end debugging and analysis of the function.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Enable tracing

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
Resources:
  GoodFunction:
    Type: AWS::Serverless::Function
    Properties:
      ImageConfig:
        Command:
          - app.lambda_handler
        EntryPoint:
          - entrypoint1
        WorkingDirectory: workDir
      ImageUri: account-id.dkr.ecr.region.amazonaws.com/ecr-repo-name:image-name
      PackageType: Image
      Tracing: Active