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?
Asked
Active
Viewed 79 times
-1

John Rotenstein
- 241,921
- 22
- 380
- 470

DINESH RATHEE
- 97
- 1
- 4
-
You have both `aws-cli` and `aws-console` tagged. Which method do you wish to use? – Mark B Jan 24 '20 at 16:39
1 Answers
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