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

     1  
     2  Enable tracing
     3  
     4  ```yaml---
     5  AWSTemplateFormatVersion: 2010-09-09
     6  Description: Good Example of SAM API
     7  Resources:
     8    GoodStateMachine:
     9      Type: AWS::Serverless::StateMachine
    10      Properties:
    11        Definition:
    12          StartAt: MyLambdaState
    13          States:
    14            MyLambdaState:
    15              Type: Task
    16              Resource: arn:aws:lambda:us-east-1:123456123456:function:my-sample-lambda-app
    17              End: true
    18        Role: arn:aws:iam::123456123456:role/service-role/my-sample-role
    19        Tracing:
    20          Enabled: true
    21  
    22  ```
    23  
    24