( 1 )-AWS SAA Hands-on: Private and Public IP (IPV4)|Elastci IP

( 1 )-AWS SAA Hands-on: Private and Public IP (IPV4)|Elastci IP

Public IP Vs Private IP

In AWS, Generally, we use public IP addresses. We cant use private IPs because we are not on the same network. This means if we use private IP which will be within the VPC, we can't access resources such as websites, applications, and databases hosted on AWS.

Note: public IP address will change once the status of the instance is changed.

In that case, we will be using an Elastic IP address.

Hands-on

Currently, my IP address is as below and it is in a running state.

I will stop the instance and start again

You can see that my instance restarted and its Public IPV4 address has changed.

Now let's associate/attach an elastic IP address.

We have allocated an Elastic IP address to our instance. Now even if we change our instance state, then the ipv4 address will remain the same.

Note: If we use an elastic IP address it will charge. Better you detach it.

That's all about Elastic IP address. Hope it helps. Thank you for your time