- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-08-2019 12:24 AM - last edited on 09-02-2020 11:11 AM by CHopson
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
10-31-2019 02:17 PM
This RQL might do the trick: config where api.name = 'aws-ec2-describe-instances' AND json.rule = keyName contains "KEYNAME"
10-31-2019 02:17 PM
This RQL might do the trick: config where api.name = 'aws-ec2-describe-instances' AND json.rule = keyName contains "KEYNAME"
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!