Similar problems I also face. I want to trace the ec2 instances id based on IP and from the AWS console, it's very difficult to trace. So I write a PowerShell script that helps me to find the instance id with the associated IP address.
Hope this will help you.
$instanceList = @("i-01f4da30bad3b", "i-06eaa91009872", "i-06ab536ca4e"")
foreach($eachInstance in $instanceList)
{
$configuration_json = aws configservice get-resource-config-history --resource-type AWS::EC2::Instance --resource-id $eachInstance --region us-west-2 | ConvertFrom-JSON
$instanceIP = (($configuration_json.configurationItems.configuration)[1] | ConvertFrom-JSON).PrivateIPAddress
$instanceID = (($configuration_json.configurationItems.configuration)[1] | ConvertFrom-JSON).instanceId
Write-Host "$instanceID - $instanceIP"
}