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?
What is the recommended way to do enable XRAY on a Lambda function using AWS Amplify?
Edit the CloudFormation that Amplify generates
Set TracingConfig's mode to 'Active` in the AWS::Lambda::Function.
Make sure your Lambda's role has permissions for X-Ray
"xray:PutTraceSegments",
"xray:PutTelemetryRecords"