Refer to the following guide to learn how to use IAM in the cloud\
<https://scribehow.com/shared/Creating_an_IAM_User_and_User_Group_in_AWS_Management_Console__hWNiiXlcRJKFqYZZEJD-cg>
1
Sign in to **AWS Management Console** as an **IAM User**
**Pre-requisite** - Ensure you have selected the AWS region closest to your location\
For this guide, we will be using us-east-2 (Ohio) as a preferred choice
2
Type **EC2** in the search bar and click on **EC2** to view the EC2 Dashboard
**What is Amazon EC2?**
Amazon EC2 is a cloud computing service by AWS, offering resizable virtual servers called instances. It enables users to run applications, scale resources as needed, and pay only for what they use.
3
On the EC2 dashboard click on **Instances** from the left bar to view the EC2 instances
Refer to this guide to learn how to create an EC2 instance\
<https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ>
4
Select the **Public-EC2-instance** instance
5
Scroll the page to view the **Public IPv4 address**
**What is Public IPv4 address?**
A Public IPv4 address is a unique numerical label assigned to a device connected to a network, allowing it to communicate with other devices over the internet. It serves as an identifier for the device and enables communication between different systems across the internet.
6
On the top right corner click on the **Instance state** dropdown and select the option **Stop instance**
7
**Stop instance** wizard will open, click on the **Stop** button
8
On the top right corner click on the **Refresh instance** widget to refresh the instance status
9
Scroll the page to the Public IPv4 address, and you will notice that there is no **Public IPv4 address** available as we have stopped the instance but the Private IPv4 address is visible
10
On the top right corner click on the **Instance state** dropdown button and click on the option **Start instance**
11
On the top right corner click on the **Refresh instance** widget to refresh the instance status
12
Scroll the page to the **Public IPv4 address**, and you will observe that the Public IPv4 address is visible and has been updated with a new value but the Private IPv4 address is still constant
**What's the reason for the change in the Public IPv4 address?**
The Public IPv4 address changed likely due to a refresh or reboot of the EC2 instance, or because it was assigned a new address by the AWS infrastructure.
Congratulations on successfully exploring the EC2 public and private IPv4 addresses in AWS, and completing this lab. Well done!