# AWS X-Ray serverless plugin

**URL:** <https://forum.serverless.com/t/aws-x-ray-serverless-plugin/4003>\
**Category:** Serverless Framework\
**Created:** [March 13, 2018, 12:00pm UTC](https://forum.serverless.com/t/aws-x-ray-serverless-plugin/4003 "2018-03-13T12:00:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcflurrybaby](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/mcflurrybaby/32/1738_2.png) [@mcflurrybaby](https://forum.serverless.com/u/mcflurrybaby)\
**Post date:** [March 13, 2018, 12:00pm UTC](https://forum.serverless.com/t/aws-x-ray-serverless-plugin/4003/1 "2018-03-13T12:00:37Z")

</div>

Hello! I am using serverless with serverless-tracing-plugin to enable AWS XRay on my lambda  
but it only seems to work then i set IAM role statements as this:  
{  
“Effect”: “Allow”,  
“Action”: [  
“xray:PutTraceSegments”,  
“xray:PutTelemetryRecords”  
],  
“Resource”: “\*”  
}  
How do I scope down permissions for Xray? Like with what should I replace \* in Resourse  
Replacing this with lambda arn doesn’t work
