Exposing EC2 dynamic data details on HTTP Web Server | Scribe

    Exposing EC2 dynamic data details on HTTP Web Server

    • Hafeez Baig |
    • 6 steps |
    • 22 seconds
    information ordinal icon
    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>
    1
    Access to the **EC2 Linux instance** by connecting through AWS default **EC2 instance connect**
    information ordinal icon
    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
    2
    Type [[sudo su]] to switch from **ec2-user** to root; followed by pressing Enter
    information ordinal icon
    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>
    information ordinal icon
    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.
    3
    Run the following command: [[echo "Getting started with AWS with in28minutes" &gt; /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
    4
    Return to the Instances page in the Console Select the instance named - **First EC2 Instance** to view its details
    5
    Scroll to the Instance overview section and copy the Public IPv4 address
    6
    Paste the Public IPv4 address in the browser's address bar to access the **index.html** page
    information ordinal icon
    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
    information ordinal icon
    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>
    information ordinal icon
    Congratulations on completing this lab and Exposing EC2 Dynamic Data Details on an HTTP Web Server! Good job!