Difference between revisions of "Aws cloudtrail lookup-events"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
   --start-time <start-time> \
 
   --start-time <start-time> \
 
   --end-time <end-time> \
 
   --end-time <end-time> \
   --lookup-attributes AttributeKey=ResourceName,[[AttributeValue]]=<instance-id>
+
   --lookup-attributes AttributeKey=[[ResourceName]],[[AttributeValue]]=<instance-id>
  
  
Line 25: Line 25:
 
== Related ==
 
== Related ==
 
* [[CloudTrail Events]]
 
* [[CloudTrail Events]]
 +
* <code>[[AWS::]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{aws cloudtrail lookup-events}}
 +
* {{AWS CloudTrail Events}}
 
* {{aws cloudtrail}}
 
* {{aws cloudtrail}}
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 15:11, 24 September 2024

  • aws cloudtrail lookup-events
  • aws cloudtrail lookup-events --max-results 1
  • aws cloudtrail lookup-events --max-results 1000 | egrep "EventName|EventTime"
  • aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin
  • aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=CreateBucket --max-items 1


ChatGPT (pending validation)

aws cloudtrail lookup-events \
  --start-time <start-time> \
  --end-time <end-time> \
  --lookup-attributes AttributeKey=ResourceName,AttributeValue=<instance-id>


aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=AWS::S3::Bucket --max-items 1 --output text
(no output)
aws cloudtrail lookup-events --lookup-attributes AttributeKey=ResourceType,AttributeValue=NOT_a_valid_attribute  --max-items 1 --output text
(no output)

Related[edit]

See also[edit]

Advertising: