github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/avd_docs/aws/sam/AVD-AWS-0125/CloudFormation.md (about)

     1  
     2  Enable tracing
     3  
     4  ```yaml---
     5  AWSTemplateFormatVersion: 2010-09-09
     6  Description: Good Example of SAM Function
     7  Resources:
     8    GoodFunction:
     9      Type: AWS::Serverless::Function
    10      Properties:
    11        PackageType: Image
    12        ImageUri: account-id.dkr.ecr.region.amazonaws.com/ecr-repo-name:image-name
    13        ImageConfig:
    14          Command:
    15            - "app.lambda_handler"
    16          EntryPoint:
    17            - "entrypoint1"
    18          WorkingDirectory: "workDir"
    19        Tracing: Active
    20  
    21  ```
    22  
    23