AMA: Find AWS Instances by their Private IP Addresses
[Deleted User]
admin
How would I construct a query that finds AWS instances by their private IP addresses that return public IPs, AMIs, Accounts, Instance IDs and any tags associated with each?
0
Comments
-
The following pre-supposes you are using the tagging feature in your AWS integration, just replace the
IP_ADDRESS
with the real IP. Please note that I'm not aware of a way to return all tags. I believe you would have to enumerate the tags you want to include (e.g. usingi.tag.<name_of_tag>
in theRETURN
clause).FIND aws_instance WITH privateIpAddress = "" AS i
RETURN
i.publicIpAddressAS PublicIP,
i.imageId AS AMI,
i.tag.AccoutnName AS AccountName,
i.id AS InstanceIdYou can format this query to accept multiple IP addresses.
FIND aws_instance
WITH privateIpAddress = ("x.x.x.x" or "x.y.x.y")You can find the original article to this AMA on the JupiterOne blog.
0
This Month's Leaders
Categories
- 336 All Categories
- Featured Categories
- 7 About the AskJ1 Community
- 11 Product Announcements
- From Mission Control
- 1 Rapid Response
- 3 How J1 Uses J1
- Topics
- 131 Asset Management
- 56 Compliance & Reporting
- 65 Security Operations
- 40 Security Engineering
- 5 Open Source
- 18 News, Careers and More