SAM State machine must have X-Ray tracing enabled
X-Ray tracing enables end-to-end debugging and analysis of all state machine activities.
Impact
Recommended Actions
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
14
|
Resources:
GoodStateMachine:
Type: AWS::Serverless::StateMachine
Properties:
Definition:
StartAt: MyLambdaState
States:
MyLambdaState:
End: true
Resource: arn:aws:lambda:us-east-1:123456123456:function:my-sample-lambda-app
Type: Task
Role: arn:aws:iam::123456123456:role/service-role/my-sample-role
Tracing:
Enabled: true
|
Links