RandomGuyqwert
RandomGuyqwert

Reputation: 435

Find list of Elastic IPs from running Amazon Instance

I have a amazon instance, that has several elastic ips assigned to it.

Looking at this answer, I have found a way to get one of the elastic ips of the instance, the one I use to ssh into it.

However, I would like to know if there is a way to get all the elastic ips assigned to the machine.

How do I get a list of all elastic ips assigned to my amazon instance?

Thanks!

Upvotes: 0

Views: 187

Answers (1)

Ashish-G
Ashish-G

Reputation: 417

See http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-instance-metadata.html

Following should list elastic IPs:

curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/<list-actual-mac-here>/public-ipv4s/

Upvotes: 2

Related Questions