I have a VPC
with several instances;
These need to be reachable among them via public url
s, i.e. one instance, say
mysub1.mydomain.com
should be able to access
mysub2.mydomain.com
and vice-versa;
My only way for the moment to go about this is:
a) allocate ElasticIP
to each one (so that they do not change)
b) add explicit allow rules in the respective security group so that the above requests are possible;
Since I am short on ElasticIP
s, is there another way to go about this case, given that the instance number is expected to grow?
I can place those instances behind ELB
or ALB
if that solves the problem somehow;
edit: Could the usage of a NAT Gateway with a twist (that actually allows both incoming and outgoing traffic to/from my instances) be the solution to save IP addresses? but how can this be combined with a load balancer (either ELB or ALB) that I have to use during some requirements?