theglauber
theglauber

Reputation: 29605

How to tell if an IP address in Amazon's cloud is static?

Given an address (not owned by me) which is part of Amazon's Cloud, is there any way I can tell if that address is "elastic" (static)?

Upvotes: 1

Views: 1476

Answers (2)

Pasha
Pasha

Reputation: 908

AWS provides you the flexibility to get Elastic Ip addresses in 2 ways

if generated with Elastic Ip console, yes it is static and completely owned by you, unless you delete it or re-associate it.

If you are referencing to Auto Assigned Elastic Ip address with EC2/ELB, they are not static. you get a new ip address everytime you restart the instance/add or remove the instance from ELB.

Elastic Ip addresses are associated to instances, which already have an IP address(static until instance terminated)

Upvotes: 0

helloV
helloV

Reputation: 52383

There is no way to tell if an IP is static(elastic) or not. AWS publishes a list of CIDRs that it owns and updates it periodically, but no information on if the addresses are elastic or not.

If the address is owned by you, then you can call describe-addresses and check if the IP is in the output. But if you don't own it, there is no way to tell if the address is elastic or not.

Upvotes: 4

Related Questions