views:

47

answers:

2

I have a scenario where an application requires multiple private IP addresses but does not require the resources of multiple instances.

In this case, I would like to run multiple jboss instances on the same EC2 instance without port mangling.

I've seem threads up to 2009 that stated this is not possible, checking if this has changed.

EDIT: I want to re-emphasize the private IP address is the question, not the elastic/public IP address. I am sorry I did not make this more specific.

A: 

Afaik, it's still not possible.

Some people run vserver or UML on an ec2 instance. You could set up various environments in there and then port forward from the host, etc. but that seems overcomplicated (IMHO).

Till
A: 

Unfortunately this is still the case. Quoting from the Amazon EC2 Elastic IP Addresses - FAQ:

Can an instance have more than one Elastic IP or Public IP?

Today, an instance can only have one Internet routable IP address. If an Elastic IP is mapped to an instance its existing Public IP address mapping is removed.

Daniel Vassallo