Skip to content

Instantly share code, notes, and snippets.

@dym-ok
Last active August 17, 2020 17:32
Show Gist options
  • Save dym-ok/98877630a06846d1f32541497eafc52d to your computer and use it in GitHub Desktop.
Save dym-ok/98877630a06846d1f32541497eafc52d to your computer and use it in GitHub Desktop.
Enable X-Ray tracing with AWS SAM
Globals:
Function:
Tracing: Active
Api:
TracingEnabled: True
RoleLambdaExecutionPolicy:
Type: "AWS::IAM::Role"
Properties:
Policies:
Statement:
- Action:
- "xray:PutTraceSegments"
- "xray:PutTelemetryRecords"
Effect: Allow
Resource: "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment