title: Serverless framework - Enabling X-Ray in serverless.yml
body: <p>Is there a way to enable X-Ray from the serverless.yml for Lambda functions?
  I've added the X-Ray permissions in the file:</p>
  
  <pre><code>  iamRoleStatements:
      - Effect: "Allow"
        Resource: "*"
        Action:
          - "xray:*"
  </code></pre>
  
  <p>But Advanced Tracing still needs to be manually enabled in the AWS console.</p>