-1

How to get the details of Instance using particular Elastic IP (EIP). For example , I have an EIP with me and I don't know where its located?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
DINESH RATHEE
  • 97
  • 1
  • 4

1 Answers1

1

if you know the region you can use describe-addresses in aws cli:

aws ec2 describe-addresses --public-ips xxx.xxx.xxx.xxx

{
"Addresses": [
    {
        "InstanceId": "i-xxxxxxxxxxxx",
        "PublicIp": "xx.xx.xx.xx",
        "AllocationId": "eipalloc-xxxxx",
        "AssociationId": "eipassoc-xxxxxxxxxxxxxxxx",
        "Domain": "vpc",
        "NetworkInterfaceId": "eni-xxxxxxx",
        "NetworkInterfaceOwnerId": "xxxxxxxxxx",
        "PrivateIpAddress": "xx.xx.xx.xx",
        "PublicIpv4Pool": "amazon"
    }
]
}

if you dont have the region you can use the region table to find it.

Mathieu Fortin
  • 1,048
  • 7
  • 17