RQL to find out custom AWS EC2 instance keypair

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

RQL to find out custom AWS EC2 instance keypair

L1 Bithead

We have a custom AWS security checklist that we are manually running against each AWS account, and in that, we have a check to see if key pairs of all EC2 instances are created per function and per region when creating an instance with AMI. I'm looking for an RQL to find out custom Keypair.

 

I started with the following RQL but doesnt seem to get anywhere. 

 

config where api.name = 'aws-ec2-describe-key-pairs' AND json.rule = "KeyName" limit search records to 100

sjk
1 accepted solution

Accepted Solutions

L3 Networker

This RQL might do the trick: config where api.name = 'aws-ec2-describe-instances' AND json.rule = keyName contains "KEYNAME"

View solution in original post

1 REPLY 1

L3 Networker

This RQL might do the trick: config where api.name = 'aws-ec2-describe-instances' AND json.rule = keyName contains "KEYNAME"

  • 1 accepted solution
  • 3464 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!