Skip to content

Instantly share code, notes, and snippets.

@andresriancho
Created November 8, 2019 17:17
Show Gist options
  • Save andresriancho/512bfbae1ad8b175a36d6fdc32b8ccef to your computer and use it in GitHub Desktop.
Save andresriancho/512bfbae1ad8b175a36d6fdc32b8ccef to your computer and use it in GitHub Desktop.
Athena query to get AWS Lambda function invoke calls
SELECT eventtime,
eventname,
requestparameters,
awsregion,
eventsource,
resources
FROM cloudtrail_662651605507
WHERE year = '2019'
AND month IN ('7', '8', '9', '10', '11')
AND eventsource = 'lambda.amazonaws.com'
AND eventname NOT IN ('ListFunctions20150331', 'ListEventSourceMappings20150331', 'ListVersionsByFunction20150331', 'GetPolicy20150331v2', 'GetFunction20150331v2', 'ListTags20170331', 'ListAliases20150331', 'ListLayers20181031');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment