1

What is the recommended way to do enable XRAY on a Lambda function using AWS Amplify?

  • Edit the CloudFormation that Amplify generates?
  • Use CDK somehow to edit the function after it's been deployed? How?
  • Some other way?
Alexander Witte
  • 195
  • 1
  • 11

1 Answers1

1

Edit the CloudFormation that Amplify generates

  1. Set TracingConfig's mode to 'Active` in the AWS::Lambda::Function.

  2. Make sure your Lambda's role has permissions for X-Ray

"xray:PutTraceSegments",
"xray:PutTelemetryRecords"