Created
          December 20, 2017 22:02 
        
      - 
      
- 
        Save bashtoni/bf2711f5abe3e8f073bac66009294705 to your computer and use it in GitHub Desktop. 
    See all GuardDuty alerts
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | for detectorid in $(aws guardduty list-detectors --query DetectorIds[] --output text); do | |
| aws guardduty get-findings --detector-id $detectorid \ | |
| --finding-ids $(aws guardduty list-findings --detector-id $detectorid --query FindingIds --output text) \ | |
| --query 'Findings[*].[Resource.InstanceDetails.InstanceId,Type,Service.Count]' --output text | |
| done | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment