Posts AWS ElasticIP vs PublicIP
Post
Cancel

AWS ElasticIP vs PublicIP

Overview

We been asked below questions by one of our subscriber

AWS real-time exp help to get some idea for below 3 queries!
1 : How the Public IPs are provisioned in real time environment. I mean like whose responsibility is to provision the IPs? it’s network team or AWS admin task ?
2 : How Elastic IPs are used in real-time compared to Public IPs ? Do we really use Elastic IPs in real-time?
3 : Incase if we have 20 or more instances which one we will go Public or Elastic IPs ?

Answering based on our knowledge

How the Public IPs are provisioned in real time environment. I mean like whose responsibility is to provision the IPs? it’s network team or AWS admin task ?

Answer:

  • In generic The VPN are managed by Network team, they will create a range of IPs as public subnet inside VPC, so once you launch EC2 in the subnet your instance get auto alloted with Public IP
  • There won’t be any AWS admin team as such, if they exist there basic role would be just to provide you the IAM permissions
  • If you are talking about Elastic IP, it going to be based on organisation, either Network team provision it or you been enabled to create on your own

2 : How Elastic IPs are used in real-time compared to Public IPs ? Do we really use Elastic IPs in real-time?

Answer:

AWS recommend to avoid using Elastic IP as much you could, and to use DNS based resolution for EC2

  • You prefer Elastic IP where you need fixed IP for instances to connect from internet.

Few usecase we could think about

  • You host wordpress in single EC2 instance and want DNS record created pointing to fixed IP
  • You have 3rd party vendor where you need to allow request from servers based on IPs

3 : Incase if we have 20 or more instances which one we will go Public or Elastic IPs ?

Answer:

  • As mentioned earlier you need to avoid using Elastic IP as much you can
  • In generic handling 20 servers for single applications then you will group it together with ASG, Target groups and route it via ELB

Hope you find this helpful. Thanks for reading till the end.

Followus on insta @techpechu

Join Our Discord

We do run a youtube channel in Indian regional language Tamil called TechPechu. Do subscribe to us for moral support. Happy Learning.

Follow us on instagram @techpechu