Checking what consumes AWS lambda

后端 未结 2 1597
太阳男子
太阳男子 2021-01-15 21:53

I have my AWS lambda, lets call it Lambda-X.

There are other lambdas, I don\'t know their names, that consumes my Lambda-X via API call.

How do I determine t

2条回答
  •  温柔的废话
    2021-01-15 22:13

    CloudWatch Metrics shows the number of invocations of each Lambda function. That will help you to determine which Lambda is being triggered the most frequently.

    If that's insufficient, then each Lambda function obviously has a unique name. You could modify your initial Lambda functions to send that name as an additional 'source' event parameter to the invoked Lambda-X and then surface that as a custom metric.

    Or you could scrape CloudWatch Logs, assuming that your lambdas emit an identifying log each time they invoke Lambda-X. Not a pretty solution, but might work for you.

提交回复
热议问题