
Use AWS CloudTrail LookupEvents to identify which IAM identity or service is triggering 'Rate exceeded' throttling errors on Lambda management 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.
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
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