RQL to find out custom AWS EC2 instance keypair

Reply
Highlighted
L1 Bithead

RQL to find out custom AWS EC2 instance keypair

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
L2 Linker

Re: RQL to find out custom AWS EC2 instance keypair

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

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 Live Community as a whole!

The Live Community thanks you for your participation!