Created
January 23, 2019 16:15
-
-
Save ns-mkusper/8bec9cb3d77d43f8698934e9f57199e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws --output json cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceName,AttributeValue="" | jq -r '.Events | .[] | "\(.EventTime| strftime("%F %T"))\t\(.Username)\t\(.EventName)\t\(.Resources[0].ResourceType)\t\(.Resources[0].ResourceName)"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment