在AWS Amplify中启用Lambda函数的XRAY功能。

huangapple go评论54阅读模式
英文:

Enable XRAY on a lambda function using AWS Amplify

问题

以下是翻译好的内容:

什么是在使用AWS Amplify启用Lambda函数上的XRAY的推荐方式?

  • 编辑Amplify生成的CloudFormation?
  • 在部署后使用CDK以某种方式编辑该函数?如何做?
  • 其他方法?
英文:

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?

答案1

得分: 1

  1. 在由Amplify生成的CloudFormation中编辑,将TracingConfig的模式设置为'Active'在AWS::Lambda::Function中。

  2. 确保你的Lambda角色具有X-Ray的权限:

"xray:PutTraceSegments",
"xray:PutTelemetryRecords"
英文:

>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"

huangapple
  • 本文由 发表于 2023年7月13日 00:52:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76672868.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定