26

I want to use the Amazon Web Service free micro-instance for my different projects for testing and personal purpose. But I required some static-public IP on which I can run my server.

Is that possible? From where I can buy just IP and use it with my AWS?

halfer
  • 19,824
  • 17
  • 99
  • 186
coure2011
  • 40,286
  • 83
  • 216
  • 349
  • Amazon has Elastic IP Addresses like Rick says, and they're also free. You don't need to purchase any. However, if they are not assigned to a machine then you will be charged a very small fee for not using them. – bwight Mar 06 '12 at 14:09
  • Answer anyone? I'd also like to have a static public IP. Elastic IP is not a solution, because it can only be applied to running instances, so it always happens after my network services have already started, causing them to rebind from a DHCP address to Elastic IP. Is there a workaround? – tishma May 27 '13 at 10:50

5 Answers5

15

EC2 Elastic IP Addresses

Elastic IPs are tied to an account, not an instance.

Rick Button
  • 1,212
  • 13
  • 19
8

You need to look at AWS VPC for this.

Whilst VPC is free outside of the usual instance pricing, it doesn't work with Micro instances (the cheapest ones).

When not using VPC, you're assigned IP addresses through DHCP. When the DHCP lease expires, or you restart, your IP is released back to the pool.

VPC lets you use private IP addressing, you can use it with Elastic IPs and is much easier to integrate with a physical infrastructure setup.

If you're only testing/investigating AWS and have little or no budget to use anything other than a Micro instance, I'd just suck it up and deal with the changing of IPs.

If you've got a budget that lets you use instances other than Micro, then go for VPC.

Also, if you're doing more than testing/investigating I'd recommend starting with VPC straight away as trying to migrate from a non VPC to a VPC infrastructure is a massive PITA.

BryanH
  • 5,826
  • 3
  • 34
  • 47
iamgeef
  • 715
  • 8
  • 13
  • Elastic IPs don't require a VPC and afaik they never have...there's no need for a VPC given the asker's quesiton – Kyle Gobel Dec 09 '16 at 15:56
  • Yes there is, private static IPs in a VPC are free, elastic IPs are not unless you plan to keep the instance running all the time. – Erica Kane Oct 01 '17 at 02:02
4

For every AWS account, 5 free elastic ips are provided. You have to just allocate them to required instance. But make sure that the allocate address(newly created elastic ip) in in use, because you will billed if the Elastic ip is not in use.

Sangram Anand
  • 10,526
  • 23
  • 70
  • 103
  • 3
    Elastic IP is an external world facing IP. I think the question here is how to assign static internal IP to the amazon ec2 machine, so that any application that has this requirement always sees a constant one. – Jasper May 17 '13 at 10:06
  • 2
    The question was how to buy a elastic ip, and replied that you get 5 ip's free. – Sangram Anand May 18 '13 at 10:05
  • 3
    Quote from amazon "You can have one Elastic IP (EIP) address associated with a running instance at no charge." –  Sep 16 '14 at 11:46
  • Quote from Amazon: "By default, all accounts are limited to 5 Elastic IP addresses. If you need more than 5 Elastic IP addresses, we ask that you apply for your limit to be raised. We will ask you to think through your use case and help us understand your need for additional addresses. You can apply for more Elastic IP addresses here. In order to help ensure our customers are efficiently using the Elastic IP addresses that they have associated with their account, we impose the $.01/hr charge when these IP addresses are not mapped to an instance." – VinsanityL Sep 14 '16 at 08:43
0

Looks like they have configured ARP statically so you can only use the IP address on an instance that was bound to that instance through the EC2 management console.

I just configured one of my instances to use a static IP address other than the one assigned through the management console and rebooted the instance.

I'm still receiving ARP responses on the old address but not receiving ARP responses on the new address at all.

Unfortunately for me, I have a not responding instance (NFS File Server) stuck in a stopping state while I attempt to terminate it. The IP Address bound to that instance cannot be re-assigned to a replacement instance so now I have to reconfigure

Ryan Williams
  • 1,465
  • 15
  • 19
-1

On the whole pricing delima: When you come to think of it, there is a limited amount of static IPs so there must some pricing (supply and demand). This pricing is two fold: 1) for upto a limited number (5 per account) you don't have to pay. 2) if you created one you need to use it if you don't you'll be billed (to prevent every user to get 5 static IPs)

HoofarLotusX
  • 562
  • 2
  • 5
  • 11