Understanding IP addresses on EC2
This is a very common topic of confusion when you start working on EC2. So, let's discuss some of the aspects with regards to IP addressing on EC2. There are two types of IP addresses that EC2 instances can have. One is the public IP address and the other one is a private IP address. As you know, public IP addresses can be reached over the internet, whereas a private IP address cannot. It's very important for you to understand the IP addressing on the EC2 instance in order to design your fault tolerant and highly available environment. Once you launch an EC2 instance, it is assigned a private IP address at boot time, and the IP address is picked up from the subnet range in which you can launch the EC2 instance. So, every time you launch an EC2 instance, it will have a private IP address assigned. However, you can have public IP addresses assigned to the EC2 instance if you want it at boot time or later. This means your single EC2 instance can have both IP...