[{"data":1,"prerenderedAt":39},["ShallowReactive",2],{"snippet-aws-cli-lambda-rate-exceeded-source":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":20,"resources":21,"services":22,"snippets":24,"stem":34,"tags":35,"type":37,"__hash__":38},"snippets\u002Fsnippets\u002Faws-cli-lambda-rate-exceeded-source.json","Using CloudTrail LookupEvents to Identify the Source of Lambda Rate Exceeded Errors",[7],"content\u002Fcontributors\u002Fannangarachari-r.json","Use AWS CloudTrail LookupEvents to identify which IAM identity or service is triggering 'Rate exceeded' throttling errors on Lambda management API calls.","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Faws-cli-lambda-rate-exceeded-source",{"headline":14,"text":15},"How it works",[16],"You might receive a 'Rate exceeded' error when your environment exceeds Lambda function quota limits for API requests. Before you can resolve a 'Rate exceeded' error, review your CloudTrail event logs using the following commands",[18,19],"bash","aws cli",{},null,[23],"lambda",[25,30],{"title":26,"description":27,"language":28,"code":29},"View the total count of management event API calls","Run the CloudTrail lookup-events AWS CLI command. Set the start-time, the end-time, and the time zone for each value to match the problematic timeframe.","cli","aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=lambda.amazonaws.com --start-time YYYY-MM-DDTHH:MM:SS+00:00 --end-time YYYY-MM-DDTHH:MM:SS+00:00 | grep -i EventName | grep -v CloudTrailEvent | sort | uniq -c | sort -r",{"title":31,"description":32,"language":28,"code":33},"View the total count of API calls made by each user","Run the CloudTrail lookup-events command. Set the start-time, the end-time, and the time zone for each value to match the problematic timeframe.","aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventSource,AttributeValue=lambda.amazonaws.com --start-time YYYY-MM-DDTHH:MM:SS+00:00 --end-time YYYY-MM-DDTHH:MM:SS+00:00 | grep -i Username | grep -v CloudTrailEvent | sort | uniq -c | sort -r","snippets\u002Faws-cli-lambda-rate-exceeded-source",[36],"debugging","AWS CLI","QbiVnKwpIdGuI5pe7O-1zVOpF5Y9fYhafoRd9qsyAag",1790678109331]