Search code examples
serverless-frameworkserverlessaws-xray

Serverless framework - Enabling X-Ray in serverless.yml


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:

  iamRoleStatements:
    - Effect: "Allow"
      Resource: "*"
      Action:
        - "xray:*"

But Advanced Tracing still needs to be manually enabled in the AWS console.


Solution

  • It's in development. If you're unwilling to wait until the official functionality is released, you can install the plugin until it's ready.