Refer to this guide to learn how to create an EC2 instance\ <https://scribehow.com/shared/AWS__Creating_your_first_EC2_Instance__Xcu7ZVCdRfWx56YVktKgbQ> Refer to this guide to learn how to connect to an EC2 instance<https://scribehow.com/shared/How_to_Connect_to_an_AWS_EC2_Instance__czXjLrH1R1yAIXika6fGbA>
Access to the **EC2 Linux instance** by connecting through AWS default **EC2 instance connect**
Use [[sudo ]]to switch from **ec2-user** to root for administrative tasks on EC2 instance to mitigate the risk of unintended alterations affecting system stability or security
Type [[sudo su]] to switch from **ec2-user** to root; followed by pressing Enter
Refer to this guide to learn how to Install HTTPD Web Server in EC2 instance<https://scribehow.com/shared/Installing_HTTP_Web_Server_on_EC2__1MFlzC8kQlmikd88-pzMkQ>
Before proceeding to Step 3, ensure you have installed the httpd web server. This step is essential for accessing the /html path mentioned in Step 3.
Run the following command: [[echo "Getting started with AWS with in28minutes" > /var/www/html/index.html]] This command will create an **index.html** file with the message "**Getting started with AWS with in28minutes**" and save it in the **/var/www/html/** directory
Return to the Instances page in the Console Select the instance named - **First EC2 Instance** to view its details
Scroll to the Instance overview section and copy the Public IPv4 address
Paste the Public IPv4 address in the browser's address bar to access the **index.html** page
If for any reason you're unable to open the page via the public ipv4 address copy the public ipv4 DNS name from the instance overview section and paste it into the browser's address bar
Refer to this guide to learn about EC2 Instance metadata and dynamic data\ <https://scribehow.com/shared/Playing_with_EC2_Instance_Metadata_Service_and_Dynamic_Data__6NCryFcnSFWRrA8ooVRjuQ>
Congratulations on completing this lab and Exposing EC2 Dynamic Data Details on an HTTP Web Server! Good job!